From 7ceaa4228ad9221fa3fdd94be5041bf3c97c2dc4 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 8 Aug 2024 01:13:33 +0200 Subject: [PATCH] docs: cache sharing WithPeerBlockRequestFilter --- docs/environment-variables.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/environment-variables.md b/docs/environment-variables.md index 6061bdc..b7d310a 100644 --- a/docs/environment-variables.md +++ b/docs/environment-variables.md @@ -189,7 +189,13 @@ queries from these safelisted peers, serving locally cached blocks if requested. > This saves resources as data cached on other instance can be fetched internally > (e.g. LAN) rather than externally (WAN, p2p). -Default: `false` (no cache sharing) +> [!CAUTION] +> This mode comes with additional overhead, YMMV. A bitswap server +> applies `WithPeerBlockRequestFilter` and only answers to safelisted peers; +> however may still increase resource usage, as every requested CID will be +> also broadcasted to peered nodes. + +Default: `false` (no cache sharing, no bitswap server, client-only) ### `RAINBOW_REMOTE_BACKENDS`