Disable ASN healthcheck if clearnet=0

This commit is contained in:
Duke
2025-03-26 09:03:18 -04:00
parent be85be83db
commit a49abdbc5b

View File

@@ -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<uint32_t> clearnet_asns{};
int unmapped_count{0};
LOCK(cs_vNodes);