Skip to content

Commit 1107653

Browse files
committed
Merge #9060: trivial: fix bloom filter init to isEmpty = true
cccf73d trivial: fix bloom filter init to isEmpty = true (Robert McLaughlin)
2 parents f2a6e82 + cccf73d commit 1107653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CBloomFilter::CBloomFilter(unsigned int nElements, double nFPRate, unsigned int
3434
* See https://en.wikipedia.org/wiki/Bloom_filter for an explanation of these formulas
3535
*/
3636
isFull(false),
37-
isEmpty(false),
37+
isEmpty(true),
3838
nHashFuncs(min((unsigned int)(vData.size() * 8 / nElements * LN2), MAX_HASH_FUNCS)),
3939
nTweak(nTweakIn),
4040
nFlags(nFlagsIn)

0 commit comments

Comments
 (0)