mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
CBloomFilter::clear() method
This commit is contained in:
parent
6259937388
commit
8fbf03995d
3 changed files with 13 additions and 0 deletions
|
|
@ -94,6 +94,13 @@ bool CBloomFilter::contains(const uint256& hash) const
|
|||
return contains(data);
|
||||
}
|
||||
|
||||
void CBloomFilter::clear()
|
||||
{
|
||||
vData.assign(vData.size(),0);
|
||||
isFull = false;
|
||||
isEmpty = true;
|
||||
}
|
||||
|
||||
bool CBloomFilter::IsWithinSizeConstraints() const
|
||||
{
|
||||
return vData.size() <= MAX_BLOOM_FILTER_SIZE && nHashFuncs <= MAX_HASH_FUNCS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue