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

Function GetNetworkNames

src/netbase.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130std::vector<std::string> GetNetworkNames(bool append_unroutable)
131{
132 std::vector<std::string> names;
133 for (int n = 0; n < NET_MAX; ++n) {
134 const enum Network network{static_cast<Network>(n)};
135 if (network == NET_UNROUTABLE || network == NET_INTERNAL) continue;
136 names.emplace_back(GetNetworkName(network));
137 }
138 if (append_unroutable) {
139 names.emplace_back(GetNetworkName(NET_UNROUTABLE));
140 }
141 return names;
142}
143
144static std::vector<CNetAddr> LookupIntern(const std::string& name, unsigned int nMaxSolutions, bool fAllowLookup, DNSLookupFn dns_lookup_function)
145{

Callers 6

SetupServerArgsFunction · 0.85
getpeerinfoFunction · 0.85
getnetworkinfoFunction · 0.85
getnodeaddressesFunction · 0.85
getaddrmaninfoFunction · 0.85
getrawaddrmanFunction · 0.85

Calls 2

GetNetworkNameFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected