Disable ASN healthcheck if clearnet=0
This commit is contained in:
@@ -1652,6 +1652,11 @@ int64_t PoissonNextSend(int64_t now, int average_interval_seconds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ASMapHealthCheck() {
|
void ASMapHealthCheck() {
|
||||||
|
// No health check if clearnet is disabled
|
||||||
|
if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::set<uint32_t> clearnet_asns{};
|
std::set<uint32_t> clearnet_asns{};
|
||||||
int unmapped_count{0};
|
int unmapped_count{0};
|
||||||
LOCK(cs_vNodes);
|
LOCK(cs_vNodes);
|
||||||
|
|||||||
Reference in New Issue
Block a user