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

Function IsReachable

src/net.cpp:286–290  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

284
285/** check whether a given network is one we can probably connect to */
286bool IsReachable(enum Network net)
287{
288 LOCK(cs_mapLocalHost);
289 return !vfLimited[net];
290}
291
292/** check whether a given address is in a network we can probably connect to */
293bool IsReachable(const CNetAddr& addr)

Callers 2

ProcessMessageFunction · 0.85
GetNetworksInfoFunction · 0.85

Calls 1

GetNetworkMethod · 0.80

Tested by

no test coverage detected