diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h index 85cc8f18c5f..96d393a3a97 100644 --- a/src/index/blockfilterindex.h +++ b/src/index/blockfilterindex.h @@ -51,7 +51,7 @@ private: Mutex m_cs_headers_cache; /** cache of block hash to filter header, to avoid disk access when responding to getcfcheckpt. */ - std::unordered_map m_headers_cache GUARDED_BY(m_cs_headers_cache); + std::unordered_map m_headers_cache GUARDED_BY(m_cs_headers_cache); // Last computed header to avoid disk reads on every new block. uint256 m_last_header{}; diff --git a/src/util/hasher.h b/src/util/hasher.h index cdf2250bf3c..02c77033918 100644 --- a/src/util/hasher.h +++ b/src/util/hasher.h @@ -76,10 +76,6 @@ public: } }; -struct FilterHeaderHasher { - size_t operator()(const uint256& hash) const { return ReadLE64(hash.begin()); } -}; - /** * We're hashing a nonce into the entries themselves, so we don't need extra * blinding in the set hash computation.