diff options
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index 251b8892cf..f9248899dc 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -449,6 +449,13 @@ public: uint32_t nTime{TIME_INIT}; //! Serialized as uint64_t in V1, and as CompactSize in V2. ServiceFlags nServices{NODE_NONE}; + + friend bool operator==(const CAddress& a, const CAddress& b) + { + return a.nTime == b.nTime && + a.nServices == b.nServices && + static_cast<const CService&>(a) == static_cast<const CService&>(b); + } }; /** getdata message type flags */ |