MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetnScore

Function GetnScore

src/net.cpp:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static int GetnScore(const CService& addr)
164{
165 LOCK(cs_mapLocalHost);
166 if (mapLocalHost.count(addr) == LOCAL_NONE)
167 return 0;
168 return mapLocalHost[addr].nScore;
169}
170
171// Is our peer's addrLocal potentially useful as an external IP source?
172bool IsPeerAddrLocalGood(CNode *pnode)

Callers 1

AdvertiseLocalFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected