From 5a2e3592137d595fb5fd0f9d66c9cac6c020d7bd Mon Sep 17 00:00:00 2001 From: Sebastian van Staa Date: Mon, 4 May 2026 21:21:29 +0200 Subject: [PATCH] clarify blockfilterindex cache allocation rationale --- src/node/caches.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node/caches.cpp b/src/node/caches.cpp index d1a54b95f81..03c58648b7f 100644 --- a/src/node/caches.cpp +++ b/src/node/caches.cpp @@ -62,7 +62,9 @@ CacheSizes CalculateCacheSizes(const ArgsManager& args, size_t n_indexes) // - txindex (10%): serves getrawtransaction RPCs with mostly unique, // non-repetitive lookups across the entire blockchain. // - blockfilterindex (5%): serves BIP 157 light clients that repeatedly - // query recent blocks, benefiting most from LevelDB cache. + // query recent blocks, benefiting from LevelDB cache, but the + // working set for a typical 2-week offline gap is ~200kiB, well within 5% + // of the total cache. // - txospenderindex (5%): serves gettxspendingprevout RPCs with very // specific, rarely repeated outpoint queries. // - coinstatsindex: intentionally not included here, since usage pattern