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

Method IsRFC3964

src/netaddress.cpp:346–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346bool CNetAddr::IsRFC3964() const
347{
348 return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 2>{0x20, 0x02});
349}
350
351bool CNetAddr::IsRFC6052() const
352{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 2

IsIPv6Function · 0.85
HasPrefixFunction · 0.85

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64