Skip to content

Commit deccf1c

Browse files
committed
Move IsPeerAddrLocalGood() declaration from header to implementation
1 parent 4a1aae6 commit deccf1c

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
@@ -223,7 +223,7 @@ static int GetnScore(const CService& addr)
223223
}
224224

225225
// Is our peer's addrLocal potentially useful as an external IP source?
226-
bool IsPeerAddrLocalGood(CNode *pnode)
226+
[[nodiscard]] static bool IsPeerAddrLocalGood(CNode *pnode)
227227
{
228228
CService addrLocal = pnode->GetAddrLocal();
229229
return fDiscover && pnode->addr.IsRoutable() && addrLocal.IsRoutable() &&

src/net.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ enum
145145
LOCAL_MAX
146146
};
147147

148-
bool IsPeerAddrLocalGood(CNode *pnode);
149148
/** Returns a local address that we should advertise to this peer. */
150149
std::optional<CService> GetLocalAddrForPeer(CNode& node);
151150

0 commit comments

Comments
 (0)