Changeset View
Changeset View
Standalone View
Standalone View
src/index/blockfilterindex.h
Show All 34 Lines | private: | ||||
FlatFilePos m_next_filter_pos; | FlatFilePos m_next_filter_pos; | ||||
std::unique_ptr<FlatFileSeq> m_filter_fileseq; | std::unique_ptr<FlatFileSeq> m_filter_fileseq; | ||||
bool ReadFilterFromDisk(const FlatFilePos &pos, BlockFilter &filter) const; | bool ReadFilterFromDisk(const FlatFilePos &pos, BlockFilter &filter) const; | ||||
size_t WriteFilterToDisk(FlatFilePos &pos, const BlockFilter &filter); | size_t WriteFilterToDisk(FlatFilePos &pos, const BlockFilter &filter); | ||||
Mutex m_cs_headers_cache; | Mutex m_cs_headers_cache; | ||||
/** | |||||
* Cache of block hash to filter header, to avoid disk access when | |||||
* responding to getcfcheckpt. | |||||
*/ | |||||
std::unordered_map<BlockHash, uint256, FilterHeaderHasher> | std::unordered_map<BlockHash, uint256, FilterHeaderHasher> | ||||
m_headers_cache GUARDED_BY(m_cs_headers_cache); | m_headers_cache GUARDED_BY(m_cs_headers_cache); | ||||
protected: | protected: | ||||
bool Init() override; | bool Init() override; | ||||
bool CommitInternal(CDBBatch &batch) override; | bool CommitInternal(CDBBatch &batch) override; | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |