CBloomFilter::clear() method

This commit is contained in:
Tom Harding
2014-07-21 11:50:07 -07:00
parent cdb4193a31
commit 9c347313f7
3 changed files with 13 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ public:
bool contains(const COutPoint& outpoint) const;
bool contains(const uint256& hash) const;
void clear();
// True if the size is <= MAX_BLOOM_FILTER_SIZE and the number of hash functions is <= MAX_HASH_FUNCS
// (catch a filter which was just deserialized which was too big)
bool IsWithinSizeConstraints() const;