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

Function SeenLocal

src/net.cpp:337–346  ·  view source on GitHub ↗

vote for a local address */

Source from the content-addressed store, hash-verified

335
336/** vote for a local address */
337bool SeenLocal(const CService& addr)
338{
339 {
340 LOCK(cs_mapLocalHost);
341 if (mapLocalHost.count(addr) == 0)
342 return false;
343 mapLocalHost[addr].nScore++;
344 }
345 return true;
346}
347
348
349/** check whether a given address is potentially local */

Callers 1

ProcessMessageFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected