MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / IsPeerAddrLocalGood

Function IsPeerAddrLocalGood

src/net.cpp:205–209  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

203
204// Is our peer's addrLocal potentially useful as an external IP source?
205bool IsPeerAddrLocalGood(CNode *pnode)
206{
207 return fDiscover && pnode->addr.IsRoutable() && pnode->addrLocal.IsRoutable() &&
208 !IsLimited(pnode->addrLocal.GetNetwork());
209}
210
211// pushes our own address to a peer
212void 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