diff --git a/src/net.cpp b/src/net.cpp index 168f2b169..b786938bd 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1652,6 +1652,11 @@ int64_t PoissonNextSend(int64_t now, int average_interval_seconds) } void ASMapHealthCheck() { + // No health check if clearnet is disabled + if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) { + return; + } + std::set clearnet_asns{}; int unmapped_count{0}; LOCK(cs_vNodes);