diff options
Diffstat (limited to 'src/blockfilter.h')
-rw-r--r-- | src/blockfilter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockfilter.h b/src/blockfilter.h index c0bd69b332..7809e6875a 100644 --- a/src/blockfilter.h +++ b/src/blockfilter.h @@ -31,6 +31,11 @@ private: uint64_t m_F; //!< Range of element hashes, F = N * M std::vector<unsigned char> m_encoded; + /** Hash a data element to an integer in the range [0, N * M). */ + uint64_t HashToRange(const Element& element) const; + + std::vector<uint64_t> BuildHashedSet(const ElementSet& elements) const; + public: /** Constructs an empty filter. */ |