MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / IsLocal

Function IsLocal

src/net.cpp:279–283  ·  view source on GitHub ↗

check whether a given address is potentially local */

Source from the content-addressed store, hash-verified

277
278/** check whether a given address is potentially local */
279bool IsLocal(const CService& addr)
280{
281 LOCK(cs_mapLocalHost);
282 return mapLocalHost.count(addr) > 0;
283}
284
285/** check whether a given network is one we can probably connect to */
286bool IsReachable(enum Network net)

Callers 5

IsRoutableMethod · 0.85
GetGroupMethod · 0.85
ConnectNodeMethod · 0.85
ThreadOpenConnectionsMethod · 0.85
OpenNetworkConnectionMethod · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected