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

Function IsLocal

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

check whether a given address is potentially local */

Source from the content-addressed store, hash-verified

348
349/** check whether a given address is potentially local */
350bool IsLocal(const CService& addr)
351{
352 LOCK(cs_mapLocalHost);
353 return mapLocalHost.count(addr) > 0;
354}
355
356/** check whether a given network is one we can probably connect to */
357bool IsReachable(enum Network net)

Callers 5

IsRoutableMethod · 0.85
GetGroupMethod · 0.85
ConnectNodeFunction · 0.85
ThreadOpenConnectionsFunction · 0.85
OpenNetworkConnectionFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected