MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsLocal

Function IsLocal

src/net.cpp:358–362  ·  view source on GitHub ↗

check whether a given address is potentially local */

Source from the content-addressed store, hash-verified

356
357/** check whether a given address is potentially local */
358bool IsLocal(const CService& addr)
359{
360 LOCK(g_maplocalhost_mutex);
361 return mapLocalHost.count(addr) > 0;
362}
363
364CNode* CConnman::FindNode(const CNetAddr& ip)
365{

Callers 6

IsRoutableMethod · 0.85
GetGroupMethod · 0.85
ConnectNodeMethod · 0.85
ThreadOpenConnectionsMethod · 0.85
OpenNetworkConnectionMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

countMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68