Steps to reproduce:

* Create a datadir that is pruned
* Start with `-prune=550 -reindex-chainstate`
* Hangs with idle CPU

(`-reindex` works)
if (!nets.count(net))
                SetReachable(net, false);
        }
    }
    if (!args.IsArgSet("-cjdnsreachable")) {
        SetReachable(NET_CJDNS, false);
    }
     
     
     
     
     
    fNameLookup = args.GetBoolArg("-dns", DEFAULT_NAME_LOOKUP);
    Proxy onion_proxy;
    bool proxyRandomize = args.GetBoolArg("-proxyrandomize", DEFAULT_PROXYRANDOMIZE);
     
     
    std::string proxyArg = args.GetArg("-proxy", "");
    if (proxyArg != "" && proxyArg != "0") {
        CService proxyAddr;
        if (!Lookup(proxyArg, proxyAddr, 9050, fNameLookup)) {
            return InitError(strprintf(_("Invalid -proxy address or hostname: '%s'"), proxyArg));
        }
        Proxy addrProxy = Proxy(proxyAddr, proxyRandomize);
        if (!addrProxy.IsValid())