aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-05-21 14:36:42 -0400
committerJohn Newbery <john@johnnewbery.com>2020-05-22 11:59:58 -0400
commit3bdc7c2d3977a7864aacea80bffc4df7f37cac51 (patch)
tree92493e559b52c1fb7042ed619bfe4c78e9090360 /src/index
parent4479eb04d92806633aa3ad3e413f6a7166863638 (diff)
downloadbitcoin-3bdc7c2d3977a7864aacea80bffc4df7f37cac51.tar.xz
[doc] Add comment for m_headers_cache
Diffstat (limited to 'src/index')
-rw-r--r--src/index/blockfilterindex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h
index 7ca43540c7..317f8c0e40 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<uint256, uint256, FilterHeaderHasher> m_headers_cache GUARDED_BY(m_cs_headers_cache);
protected: