diff options
-rw-r--r-- | src/net.cpp | 2 | ||||
-rw-r--r-- | src/net.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 1b1b540417..e8567348f6 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -223,7 +223,7 @@ static int GetnScore(const CService& addr) } // Is our peer's addrLocal potentially useful as an external IP source? -bool IsPeerAddrLocalGood(CNode *pnode) +[[nodiscard]] static bool IsPeerAddrLocalGood(CNode *pnode) { CService addrLocal = pnode->GetAddrLocal(); return fDiscover && pnode->addr.IsRoutable() && addrLocal.IsRoutable() && @@ -145,7 +145,6 @@ enum LOCAL_MAX }; -bool IsPeerAddrLocalGood(CNode *pnode); /** Returns a local address that we should advertise to this peer. */ std::optional<CService> GetLocalAddrForPeer(CNode& node); |