Whenever -blocksonly is specified, there is implicitly a zero size mempool. However, there is still a non-zero value for -maxmempool which will be shared with dbcache, leading to 300 MB extra usage. Fix this.
assert(IsReachable(net));
            if (!nets.count(net))
                SetReachable(net, false);
        }
    }
    if (!args.IsArgSet("-cjdnsreachable")) {
        if (args.IsArgSet("-onlynet") && IsReachable(NET_CJDNS)) {
            return InitError(
                _("Outbound connections restricted to CJDNS (-onlynet=cjdns) but "
                  "-cjdnsreachable is not provided"));
        }
        SetReachable(NET_CJDNS, false);
    }
     
     
     
     
     
     
     
    if (args.GetBoolArg("-dnsseed") == true && !IsReachable(NET_IPV4) && !IsReachable(NET_IPV6)) {
        return InitError(strprintf(_("Incompatible options: -dnsseed=1 was explicitly specified, but -onlynet forbids connections to IPv4IPv6")));
    };
     
    fNameLookup = args.GetBoolArg("-dns", DEFAULT_NAME_LOOKUP);
    Proxy onion_proxy;