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

Function IsReachable

src/net.cpp:314–318  ·  view source on GitHub ↗

check whether a given network is one we can probably connect to */

Source from the content-addressed store, hash-verified

312
313/** check whether a given network is one we can probably connect to */
314bool IsReachable(enum Network net)
315{
316 LOCK(cs_mapLocalHost);
317 return vfReachable[net] && !vfLimited[net];
318}
319
320/** check whether a given address is in a network we can probably connect to */
321bool IsReachable(const CNetAddr& addr)

Callers 2

GetNetworksInfoFunction · 0.85
BOOST_FOREACHFunction · 0.85

Calls 1

GetNetworkMethod · 0.80

Tested by

no test coverage detected