Skip to content

Commit 5ba73cd

Browse files
committed
Move GetLocal() declaration from header to implementation
1 parent 11426f6 commit 5ba73cd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ uint16_t GetListenPort()
146146
}
147147

148148
// find 'best' local address for a particular peer
149-
bool GetLocal(CService& addr, const CNode& peer)
149+
[[nodiscard]] static bool GetLocal(CService& addr, const CNode& peer)
150150
{
151151
if (!fListen)
152152
return false;

src/net.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE);
163163
void RemoveLocal(const CService& addr);
164164
bool SeenLocal(const CService& addr);
165165
bool IsLocal(const CService& addr);
166-
bool GetLocal(CService& addr, const CNode& peer);
167166
CService GetLocalAddress(const CNode& peer);
168167
CService MaybeFlipIPv6toCJDNS(const CService& service);
169168

0 commit comments

Comments
 (0)