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

Method GetReachableEmptyNetworks

src/net.cpp:2532–2543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2530}
2531
2532std::unordered_set<Network> CConnman::GetReachableEmptyNetworks() const
2533{
2534 std::unordered_set<Network> networks{};
2535 for (int n = 0; n < NET_MAX; n++) {
2536 enum Network net = (enum Network)n;
2537 if (net == NET_UNROUTABLE || net == NET_INTERNAL) continue;
2538 if (g_reachable_nets.Contains(net) && addrman.get().Size(net, std::nullopt) == 0) {
2539 networks.insert(net);
2540 }
2541 }
2542 return networks;
2543}
2544
2545bool CConnman::MultipleManualOrFullOutboundConns(Network net) const
2546{

Callers

nothing calls this directly

Calls 4

ContainsMethod · 0.45
SizeMethod · 0.45
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected