aboutsummaryrefslogtreecommitdiff
path: root/src/bloom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bloom.h')
-rw-r--r--src/bloom.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/bloom.h b/src/bloom.h
index 54d16d7126..dafea67029 100644
--- a/src/bloom.h
+++ b/src/bloom.h
@@ -63,12 +63,16 @@ public:
CBloomFilter() : isFull(true), isEmpty(false), nHashFuncs(0), nTweak(0), nFlags(0) {}
IMPLEMENT_SERIALIZE
- (
- READWRITE(vData);
- READWRITE(nHashFuncs);
- READWRITE(nTweak);
- READWRITE(nFlags);
- )
+
+ template <typename T, typename Stream, typename Operation>
+ inline static size_t SerializationOp(T thisPtr, Stream& s, Operation ser_action, int nType, int nVersion) {
+ size_t nSerSize = 0;
+ READWRITE(thisPtr->vData);
+ READWRITE(thisPtr->nHashFuncs);
+ READWRITE(thisPtr->nTweak);
+ READWRITE(thisPtr->nFlags);
+ return nSerSize;
+ }
void insert(const std::vector<unsigned char>& vKey);
void insert(const COutPoint& outpoint);