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

Function IsLocal

src/net.cpp:228–231  ·  view source on GitHub ↗

check whether a given address is potentially local */

Source from the content-addressed store, hash-verified

226
227/** check whether a given address is potentially local */
228bool IsLocal(const CService& addr) {
229 LOCK(cs_mapLocalHost);
230 return mapLocalHost.count(addr) > 0;
231}
232
233/** check whether a given address is in a network we can probably connect to */
234bool IsReachable(const CNetAddr& addr) {

Callers 5

IsRoutableMethod · 0.85
GetGroupMethod · 0.85
ConnectNodeFunction · 0.85
ThreadOpenConnectionsFunction · 0.85
OpenNetworkConnectionFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected