From 5ba73cd0ee1e661ec4d041ac8ae7a60cfd31f0c0 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 13 Jul 2023 12:14:16 -0600 Subject: [PATCH] Move GetLocal() declaration from header to implementation --- src/net.cpp | 2 +- src/net.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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);