diff options
author | Jon Atack <jon@atack.com> | 2023-07-13 13:01:54 -0600 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-07-19 11:48:49 -0600 |
commit | deccf1c4848620cfff2a9642c5a6b5acdfbc33bd (patch) | |
tree | add5e83ef692b343ee41c521eccd6460e28a7f8a | |
parent | 4a1aae67498ff8e9aa7ce97fef70b973c604f892 (diff) |
Move IsPeerAddrLocalGood() declaration from header to implementation
-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); |