From 3bdc7c2d3977a7864aacea80bffc4df7f37cac51 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Thu, 21 May 2020 14:36:42 -0400 Subject: [PATCH] [doc] Add comment for m_headers_cache --- src/index/blockfilterindex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h index 7ca43540c7f..317f8c0e40f 100644 --- a/src/index/blockfilterindex.h +++ b/src/index/blockfilterindex.h @@ -39,6 +39,7 @@ private: size_t WriteFilterToDisk(FlatFilePos& pos, const BlockFilter& filter); Mutex m_cs_headers_cache; + /** cache of block hash to filter header, to avoid disk access when responding to getcfcheckpt. */ std::unordered_map m_headers_cache GUARDED_BY(m_cs_headers_cache); protected: