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

Function GetnScore

src/net.cpp:196–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196int GetnScore(const CService& addr)
197{
198 LOCK(cs_mapLocalHost);
199 if (mapLocalHost.count(addr) == LOCAL_NONE)
200 return 0;
201 return mapLocalHost[addr].nScore;
202}
203
204// Is our peer's addrLocal potentially useful as an external IP source?
205bool IsPeerAddrLocalGood(CNode *pnode)

Callers 1

AdvertizeLocalFunction · 0.85

Calls 1

countMethod · 0.80

Tested by

no test coverage detected