diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-02 15:30:41 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-02 15:30:47 +0100 |
commit | 1107653d05a4992cd97bb9e12fd1e8200555f0ec (patch) | |
tree | 8d83e93520114f1cae86a2903557e3f66040bf44 /src | |
parent | f2a6e8243f2a9405f775d285cb9661929211f829 (diff) | |
parent | cccf73db0483cc3945bf8389ce197df35e931e16 (diff) |
Merge #9060: trivial: fix bloom filter init to isEmpty = true
cccf73d trivial: fix bloom filter init to isEmpty = true (Robert McLaughlin)
Diffstat (limited to 'src')
-rw-r--r-- | src/bloom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bloom.cpp b/src/bloom.cpp index 2677652ada..d00befc61c 100644 --- a/src/bloom.cpp +++ b/src/bloom.cpp @@ -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) |