diff --git a/src/net.cpp b/src/net.cpp index ee4faeed9fd..654e0ac9fd2 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 1c2b60a30f3..54c3839fcc9 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);