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

Function IsLocal

src/net.cpp:307–311  ·  view source on GitHub ↗

check whether a given address is potentially local */

Source from the content-addressed store, hash-verified

305
306/** check whether a given address is potentially local */
307bool IsLocal(const CService& addr)
308{
309 LOCK(cs_mapLocalHost);
310 return mapLocalHost.count(addr) > 0;
311}
312
313/** check whether a given network is one we can probably connect to */
314bool 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.80

Tested by

no test coverage detected