Show paths as active or preferred in listpeers.

This commit is contained in:
Adam Ierymenko 2015-12-17 11:03:39 -08:00
parent 2160164e8c
commit aa39b0dc24
2 changed files with 9 additions and 6 deletions

View file

@ -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;