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

Function GetnScore

src/net.cpp:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234int GetnScore(const CService& addr)
235{
236 LOCK(cs_mapLocalHost);
237 if (mapLocalHost.count(addr) == LOCAL_NONE)
238 return 0;
239 return mapLocalHost[addr].nScore;
240}
241
242// Is our peer's addrLocal potentially useful as an external IP source?
243bool IsPeerAddrLocalGood(CNode* pnode)

Callers 1

AdvertizeLocalFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected