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

Function IsReachable

src/net.cpp:357–361  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

355
356/** check whether a given network is one we can probably connect to */
357bool IsReachable(enum Network net)
358{
359 LOCK(cs_mapLocalHost);
360 return vfReachable[net] && !vfLimited[net];
361}
362
363/** check whether a given address is in a network we can probably connect to */
364bool IsReachable(const CNetAddr& addr)

Callers 2

GetNetworksInfoFunction · 0.85
ProcessMessageFunction · 0.85

Calls 1

GetNetworkMethod · 0.80

Tested by

no test coverage detected