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

Function IsReachable

src/net.cpp:234–238  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

232
233/** check whether a given address is in a network we can probably connect to */
234bool IsReachable(const CNetAddr& addr) {
235 LOCK(cs_mapLocalHost);
236 enum Network net = addr.GetNetwork();
237 return vfReachable[net] && !vfLimited[net];
238}
239
240static string GetSystemInfo() {
241 struct sysinfo info;

Callers 1

ProcessAddrMessageFunction · 0.85

Calls 1

GetNetworkMethod · 0.80

Tested by

no test coverage detected