CBloomFilter::clear() method

This commit is contained in:
Tom Harding
2014-06-25 16:21:29 -07:00
parent 6259937388
commit 8fbf03995d
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;