aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2023-07-13 13:01:54 -0600
committerJon Atack <jon@atack.com>2023-07-19 11:48:49 -0600
commitdeccf1c4848620cfff2a9642c5a6b5acdfbc33bd (patch)
treeadd5e83ef692b343ee41c521eccd6460e28a7f8a /src
parent4a1aae67498ff8e9aa7ce97fef70b973c604f892 (diff)
Move IsPeerAddrLocalGood() declaration from header to implementation
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h1
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() &&
diff --git a/src/net.h b/src/net.h
index 7427d0f45b..e26bf523e8 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);