aboutsummaryrefslogtreecommitdiff
path: root/src/bloom.h
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-28 19:19:34 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-28 19:27:22 +0200
commit1ad8ea2b73134bdd8d6b50704a019d47ad2191d8 (patch)
treee4bb3deda313169ce6e76178df16d78a2bb7ae2d /src/bloom.h
parent6e3fc7492a7d5e58c0ada22617388b6487410f82 (diff)
downloadbitcoin-1ad8ea2b73134bdd8d6b50704a019d47ad2191d8.tar.xz
net: remove is{Empty,Full} flags from CBloomFilter, clarify CVE fix
Diffstat (limited to 'src/bloom.h')
-rw-r--r--src/bloom.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bloom.h b/src/bloom.h
index 8e3b7be54d..9173b80d66 100644
--- a/src/bloom.h
+++ b/src/bloom.h
@@ -45,8 +45,6 @@ class CBloomFilter
{
private:
std::vector<unsigned char> vData;
- bool isFull;
- bool isEmpty;
unsigned int nHashFuncs;
unsigned int nTweak;
unsigned char nFlags;
@@ -64,7 +62,7 @@ public:
* nFlags should be one of the BLOOM_UPDATE_* enums (not _MASK)
*/
CBloomFilter(const unsigned int nElements, const double nFPRate, const unsigned int nTweak, unsigned char nFlagsIn);
- CBloomFilter() : isFull(true), isEmpty(false), nHashFuncs(0), nTweak(0), nFlags(0) {}
+ CBloomFilter() : nHashFuncs(0), nTweak(0), nFlags(0) {}
ADD_SERIALIZE_METHODS;
@@ -90,9 +88,6 @@ public:
//! Also adds any outputs which match the filter to the filter (to match their spending txes)
bool IsRelevantAndUpdate(const CTransaction& tx);
-
- //! Checks for empty and full filters to avoid wasting cpu
- void UpdateEmptyFull();
};
/**