From aa39b0dc24b221980f72280af8c47d2a88a71b90 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 17 Dec 2015 11:03:39 -0800 Subject: Show paths as active or preferred in listpeers. --- node/Path.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node') diff --git a/node/Path.hpp b/node/Path.hpp index c1fe68d4..c6de6612 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -266,6 +266,9 @@ public: return (p - startAt); } + inline bool operator==(const Path &p) const { return ((p._addr == _addr)&&(p._localAddress == _localAddress)); } + inline bool operator!=(const Path &p) const { return ((p._addr != _addr)||(p._localAddress != _localAddress)); } + private: uint64_t _lastSend; uint64_t _lastReceived; -- cgit v1.2.3