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

Method IsAddrV1Compatible

src/netaddress.cpp:477–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477bool CNetAddr::IsAddrV1Compatible() const
478{
479 switch (m_net) {
480 case NET_IPV4:
481 case NET_IPV6:
482 case NET_INTERNAL:
483 return true;
484 case NET_ONION:
485 case NET_I2P:
486 case NET_CJDNS:
487 return false;
488 case NET_UNROUTABLE: // m_net is never and should not be set to NET_UNROUTABLE
489 case NET_MAX: // m_net is never and should not be set to NET_MAX
490 assert(false);
491 } // no default case, so the compiler can warn about missing cases
492
493 assert(false);
494}
495
496enum Network CNetAddr::GetNetwork() const
497{

Callers 4

IsAddrCompatibleFunction · 0.80
PushNodeVersionMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
deserialize.cppFile · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64