aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2023-07-13 12:14:16 -0600
committerJon Atack <jon@atack.com>2023-07-19 11:49:21 -0600
commit5ba73cd0ee1e661ec4d041ac8ae7a60cfd31f0c0 (patch)
treedceb64794c13576e60969d86280ef4bb835a0436
parent11426f6557ac09489d5e13bf3b9d94fbd5073c8e (diff)
Move GetLocal() declaration from header to implementation
-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 ee4faeed9f..654e0ac9fd 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -146,7 +146,7 @@ uint16_t GetListenPort()
}
// find 'best' local address for a particular peer
-bool GetLocal(CService& addr, const CNode& peer)
+[[nodiscard]] static bool GetLocal(CService& addr, const CNode& peer)
{
if (!fListen)
return false;
diff --git a/src/net.h b/src/net.h
index 1c2b60a30f..54c3839fcc 100644
--- a/src/net.h
+++ b/src/net.h
@@ -163,7 +163,6 @@ bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE);
void RemoveLocal(const CService& addr);
bool SeenLocal(const CService& addr);
bool IsLocal(const CService& addr);
-bool GetLocal(CService& addr, const CNode& peer);
CService GetLocalAddress(const CNode& peer);
CService MaybeFlipIPv6toCJDNS(const CService& service);