From 95e61c1cf2a91d041c8025306ba36f0ea2806894 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 17 Sep 2019 17:02:56 -0400 Subject: Move Hashers to util/hasher.{cpp/h} Move the hashers that we use for hash tables to a common place. Moved hashers: - SaltedTxidHasher - SaltedOutpointHasher - FilterHeaderHasher - SignatureCacheHasher - BlockHasher --- src/index/blockfilterindex.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/index/blockfilterindex.h') diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h index 317f8c0e40..bb75eee960 100644 --- a/src/index/blockfilterindex.h +++ b/src/index/blockfilterindex.h @@ -9,15 +9,11 @@ #include #include #include +#include /** Interval between compact filter checkpoints. See BIP 157. */ static constexpr int CFCHECKPT_INTERVAL = 1000; -struct FilterHeaderHasher -{ - size_t operator()(const uint256& hash) const { return ReadLE64(hash.begin()); } -}; - /** * BlockFilterIndex is used to store and retrieve block filters, hashes, and headers for a range of * blocks by height. An index is constructed for each supported filter type with its own database -- cgit v1.2.3