aboutsummaryrefslogtreecommitdiff
path: root/src/index/blockfilterindex.h
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2020-06-14 20:14:34 -0400
committerCalvin Kim <calvin@kcalvinalvin.info>2022-05-02 16:04:00 +0900
commitb0a53d50d9142bed51a8372eeb848816bfa94da8 (patch)
treedaa64fb121e1a4d3993bae387fce7be9398417fc /src/index/blockfilterindex.h
parent2b5a741e98f186e50d9fbe1ceadcc8b8c91547f7 (diff)
downloadbitcoin-b0a53d50d9142bed51a8372eeb848816bfa94da8.tar.xz
Make sanity check in GCSFilter constructor optional
BlockFilterIndex will perform the cheaper check of verifying the filter hash when reading the filter from disk.
Diffstat (limited to 'src/index/blockfilterindex.h')
-rw-r--r--src/index/blockfilterindex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h
index a049019c02..09c3c78c63 100644
--- a/src/index/blockfilterindex.h
+++ b/src/index/blockfilterindex.h
@@ -31,7 +31,7 @@ private:
FlatFilePos m_next_filter_pos;
std::unique_ptr<FlatFileSeq> m_filter_fileseq;
- bool ReadFilterFromDisk(const FlatFilePos& pos, BlockFilter& filter) const;
+ bool ReadFilterFromDisk(const FlatFilePos& pos, const uint256& hash, BlockFilter& filter) const;
size_t WriteFilterToDisk(FlatFilePos& pos, const BlockFilter& filter);
Mutex m_cs_headers_cache;