From a49abdbc5bee473fb6eebaa5d9e021700f48bbbe Mon Sep 17 00:00:00 2001 From: Duke Date: Wed, 26 Mar 2025 09:03:18 -0400 Subject: [PATCH] Disable ASN healthcheck if clearnet=0 --- src/net.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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);