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

Function GetExtNetwork

src/netaddress.cpp:705–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703// and only used in GetReachabilityFrom
704static const int NET_TEREDO = NET_MAX;
705int static GetExtNetwork(const CNetAddr& addr)
706{
707 if (addr.IsRFC4380())
708 return NET_TEREDO;
709 return addr.GetNetwork();
710}
711
712/** Calculates a metric for how reachable (*this) is from a given partner */
713int CNetAddr::GetReachabilityFrom(const CNetAddr& paddrPartner) const

Callers 1

GetReachabilityFromMethod · 0.85

Calls 2

IsRFC4380Method · 0.80
GetNetworkMethod · 0.80

Tested by

no test coverage detected