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

Method GetNetwork

src/netaddress.cpp:496–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496enum Network CNetAddr::GetNetwork() const
497{
498 if (IsInternal())
499 return NET_INTERNAL;
500
501 if (!IsRoutable())
502 return NET_UNROUTABLE;
503
504 return m_net;
505}
506
507static std::string IPv4ToString(std::span<const uint8_t> a)
508{

Callers 15

UnserializeMethod · 0.80
CreateMethod · 0.80
DeleteMethod · 0.80
MakeTriedMethod · 0.80
Select_Method · 0.80
CheckAddrmanMethod · 0.80
GetExtNetworkFunction · 0.80
ReachableNetsClass · 0.80
GetLocalFunction · 0.80
ConnectNodeMethod · 0.80
DisconnectNodesMethod · 0.80

Calls

no outgoing calls

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64
operator==Method · 0.64
AddTestNodeMethod · 0.64