aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/addrman.h b/src/addrman.h
index 8f6ab60662..0790802b5c 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -46,13 +46,15 @@ private:
public:
- IMPLEMENT_SERIALIZE(
- CAddress* pthis = (CAddress*)(this);
- READWRITE(*pthis);
+ IMPLEMENT_SERIALIZE;
+
+ template <typename Stream, typename Operation>
+ inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
+ READWRITE(*(CAddress*)this);
READWRITE(source);
READWRITE(nLastSuccess);
READWRITE(nAttempts);
- )
+ }
void Init()
{