diff options
Diffstat (limited to 'src/bloom.h')
-rw-r--r-- | src/bloom.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/bloom.h b/src/bloom.h index 68e76a0258..f5221b5329 100644 --- a/src/bloom.h +++ b/src/bloom.h @@ -66,15 +66,7 @@ public: 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) {} - ADD_SERIALIZE_METHODS; - - template <typename Stream, typename Operation> - inline void SerializationOp(Stream& s, Operation ser_action) { - READWRITE(vData); - READWRITE(nHashFuncs); - READWRITE(nTweak); - READWRITE(nFlags); - } + SERIALIZE_METHODS(CBloomFilter, obj) { READWRITE(obj.vData, obj.nHashFuncs, obj.nTweak, obj.nFlags); } void insert(const std::vector<unsigned char>& vKey); void insert(const COutPoint& outpoint); |