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

Function IsLocal

src/net.cpp:335–339  ·  view source on GitHub ↗

check whether a given address is potentially local */

Source from the content-addressed store, hash-verified

333
334/** check whether a given address is potentially local */
335bool IsLocal(const CService& addr)
336{
337 LOCK(g_maplocalhost_mutex);
338 return mapLocalHost.contains(addr);
339}
340
341bool CConnman::AlreadyConnectedToHost(std::string_view host) const
342{

Callers 7

IsRoutableMethod · 0.85
ConnectNodeMethod · 0.85
ThreadOpenConnectionsMethod · 0.85
OpenNetworkConnectionMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
net.cppFile · 0.85

Calls 1

containsMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68