Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ IsHeNet
Method
IsHeNet
src/netaddress.cpp:393–396 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
391
}
392
393
bool CNetAddr::IsHeNet() const
394
{
395
return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 4>{0x20, 0x01, 0x04, 0x70});
396
}
397
398
bool CNetAddr::IsLocal() const
399
{
Callers
1
GetGroup
Method · 0.80
Calls
2
IsIPv6
Function · 0.85
HasPrefix
Function · 0.85
Tested by
no test coverage detected