Skip to content

Commit 3bdc7c2

Browse files
committed
[doc] Add comment for m_headers_cache
1 parent 4479eb0 commit 3bdc7c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index/blockfilterindex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class BlockFilterIndex final : public BaseIndex
3939
size_t WriteFilterToDisk(FlatFilePos& pos, const BlockFilter& filter);
4040

4141
Mutex m_cs_headers_cache;
42+
/** cache of block hash to filter header, to avoid disk access when responding to getcfcheckpt. */
4243
std::unordered_map<uint256, uint256, FilterHeaderHasher> m_headers_cache GUARDED_BY(m_cs_headers_cache);
4344

4445
protected:

0 commit comments

Comments
 (0)