Browse Source

Merge #9060: trivial: fix bloom filter init to isEmpty = true

cccf73d trivial: fix bloom filter init to isEmpty = true (Robert McLaughlin)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
1107653d05
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/bloom.cpp

2
src/bloom.cpp

@ -34,7 +34,7 @@ CBloomFilter::CBloomFilter(unsigned int nElements, double nFPRate, unsigned int @@ -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)

Loading…
Cancel
Save