MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetnScore

Function GetnScore

src/net.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static int GetnScore(const CService& addr)
221{
222 LOCK(g_maplocalhost_mutex);
223 const auto it = mapLocalHost.find(addr);
224 return (it != mapLocalHost.end()) ? it->second.nScore : 0;
225}
226
227// Is our peer's addrLocal potentially useful as an external IP source?
228bool IsPeerAddrLocalGood(CNode *pnode)

Callers 1

GetLocalAddrForPeerFunction · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected