diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-07-07 16:08:51 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-02 11:05:36 -0800 |
commit | 9250a087d2f450f37342010aea0a5d583eea508b (patch) | |
tree | 3caf5829ecc4574d356cd9d30504df491fb2fb87 /src/addrdb.h | |
parent | ca33451535dc29f64d37c49af8b22142d7716d0d (diff) |
Convert addrdb/addrman to new serialization
Diffstat (limited to 'src/addrdb.h')
-rw-r--r-- | src/addrdb.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/addrdb.h b/src/addrdb.h index d84901fcb8..c6d4307d69 100644 --- a/src/addrdb.h +++ b/src/addrdb.h @@ -49,15 +49,7 @@ public: banReason = ban_reason_in; } - ADD_SERIALIZE_METHODS; - - template <typename Stream, typename Operation> - inline void SerializationOp(Stream& s, Operation ser_action) { - READWRITE(this->nVersion); - READWRITE(nCreateTime); - READWRITE(nBanUntil); - READWRITE(banReason); - } + SERIALIZE_METHODS(CBanEntry, obj) { READWRITE(obj.nVersion, obj.nCreateTime, obj.nBanUntil, obj.banReason); } void SetNull() { |