diff options
author | Jon Atack <jon@atack.com> | 2023-07-13 12:14:16 -0600 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-07-19 11:49:21 -0600 |
commit | 5ba73cd0ee1e661ec4d041ac8ae7a60cfd31f0c0 (patch) | |
tree | dceb64794c13576e60969d86280ef4bb835a0436 | |
parent | 11426f6557ac09489d5e13bf3b9d94fbd5073c8e (diff) |
Move GetLocal() 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 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; @@ -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); |