diff --git a/src/Makefile.am b/src/Makefile.am index 3b642102e2..d27f3bf59b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -310,6 +310,7 @@ BITCOIN_CORE_H = \ util/check.h \ util/enumerate.h \ util/error.h \ + util/fastrange.h \ util/fees.h \ util/golombrice.h \ util/hash_type.h \ diff --git a/src/blockfilter.cpp b/src/blockfilter.cpp index 1097841379..551486fb78 100644 --- a/src/blockfilter.cpp +++ b/src/blockfilter.cpp @@ -29,7 +29,7 @@ uint64_t GCSFilter::HashToRange(const Element& element) const uint64_t hash = CSipHasher(m_params.m_siphash_k0, m_params.m_siphash_k1) .Write(element.data(), element.size()) .Finalize(); - return MapIntoRange(hash, m_F); + return FastRange64(hash, m_F); } std::vector GCSFilter::BuildHashedSet(const ElementSet& elements) const diff --git a/src/bloom.cpp b/src/bloom.cpp index 4003c95c5a..b9508b3da1 100644 --- a/src/bloom.cpp +++ b/src/bloom.cpp @@ -14,6 +14,7 @@ #include