MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / GetNetworkNames

Function GetNetworkNames

src/netbase.cpp:145–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145std::vector<std::string> GetNetworkNames(bool append_unroutable) {
146 std::vector<std::string> names;
147 for (int n = 0; n < NET_MAX; ++n) {
148 const enum Network network { static_cast<Network>(n) };
149 if (network == NET_UNROUTABLE || network == NET_CJDNS ||
150 network == NET_INTERNAL) {
151 continue;
152 }
153 names.emplace_back(GetNetworkName(network));
154 }
155 if (append_unroutable) {
156 names.emplace_back(GetNetworkName(NET_UNROUTABLE));
157 }
158 return names;
159}
160
161static std::vector<CNetAddr> LookupIntern(const std::string &name,
162 unsigned int nMaxSolutions,

Callers 4

SetupServerArgsFunction · 0.85
getpeerinfoFunction · 0.85
getnetworkinfoFunction · 0.85
getnodeaddressesFunction · 0.85

Calls 2

GetNetworkNameFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected