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

Function SeenLocal

src/net.cpp:347–354  ·  view source on GitHub ↗

vote for a local address */

Source from the content-addressed store, hash-verified

345
346/** vote for a local address */
347bool SeenLocal(const CService& addr)
348{
349 LOCK(g_maplocalhost_mutex);
350 const auto it = mapLocalHost.find(addr);
351 if (it == mapLocalHost.end()) return false;
352 ++it->second.nScore;
353 return true;
354}
355
356
357/** check whether a given address is potentially local */

Callers 1

ProcessMessageMethod · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected