Skip to content

Commit

Permalink
trivial: fix bloom filter init to isEmpty = true (#1458)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerlievens authored and UdjinM6 committed May 5, 2017
1 parent c4fe229 commit 8572d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CBloomFilter::CBloomFilter(unsigned int nElements, double nFPRate, unsigned int
* See https://en.wikipedia.org/wiki/Bloom_filter for an explanation of these formulas
*/
isFull(false),
isEmpty(false),
isEmpty(true),
nHashFuncs(min((unsigned int)(vData.size() * 8 / nElements * LN2), MAX_HASH_FUNCS)),
nTweak(nTweakIn),
nFlags(nFlagsIn)
Expand Down

0 comments on commit 8572d54

Please sign in to comment.