MCPcopy Create free account
hub / github.com/LUX-Core/lux / IsPeerAddrLocalGood

Function IsPeerAddrLocalGood

src/net.cpp:243–247  ·  view source on GitHub ↗

Is our peer's addrLocal potentially useful as an external IP source?

Source from the content-addressed store, hash-verified

241
242// Is our peer's addrLocal potentially useful as an external IP source?
243bool IsPeerAddrLocalGood(CNode* pnode)
244{
245 return fDiscover && pnode->addr.IsRoutable() && pnode->addrLocal.IsRoutable() &&
246 !IsLimited(pnode->addrLocal.GetNetwork());
247}
248
249// pushes our own address to a peer
250void AdvertizeLocal(CNode* pnode)

Callers 2

ProcessMessageFunction · 0.85
AdvertizeLocalFunction · 0.85

Calls 3

IsLimitedFunction · 0.85
IsRoutableMethod · 0.80
GetNetworkMethod · 0.80

Tested by

no test coverage detected