We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a1aae6 commit deccf1cCopy full SHA for deccf1c
src/net.cpp
@@ -223,7 +223,7 @@ static int GetnScore(const CService& addr)
223
}
224
225
// Is our peer's addrLocal potentially useful as an external IP source?
226
-bool IsPeerAddrLocalGood(CNode *pnode)
+[[nodiscard]] static bool IsPeerAddrLocalGood(CNode *pnode)
227
{
228
CService addrLocal = pnode->GetAddrLocal();
229
return fDiscover && pnode->addr.IsRoutable() && addrLocal.IsRoutable() &&
src/net.h
@@ -145,7 +145,6 @@ enum
145
LOCAL_MAX
146
};
147
148
-bool IsPeerAddrLocalGood(CNode *pnode);
149
/** Returns a local address that we should advertise to this peer. */
150
std::optional<CService> GetLocalAddrForPeer(CNode& node);
151
0 commit comments