Avoid ASMap Health Checks if ac_clearnet=0 #475
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#include <hush/tlsmanager.cpp>
|
#include <hush/tlsmanager.cpp>
|
||||||
using namespace hush;
|
using namespace hush;
|
||||||
extern int32_t HUSH_TESTNODE;
|
extern int32_t HUSH_TESTNODE;
|
||||||
|
extern uint8_t ASSETCHAINS_CLEARNET;
|
||||||
|
|
||||||
// Dump addresses to peers.dat every 5 minutes (300s)
|
// Dump addresses to peers.dat every 5 minutes (300s)
|
||||||
// Satoshi originally used 10 seconds(!), did they know something Peter Wuille didn't?
|
// Satoshi originally used 10 seconds(!), did they know something Peter Wuille didn't?
|
||||||
@@ -1653,7 +1654,7 @@ int64_t PoissonNextSend(int64_t now, int average_interval_seconds)
|
|||||||
|
|
||||||
void ASMapHealthCheck() {
|
void ASMapHealthCheck() {
|
||||||
// No health check if clearnet is disabled
|
// No health check if clearnet is disabled
|
||||||
if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) {
|
if (ASSETCHAINS_CLEARNET == 0 || !GetBoolArg("-clearnet", DEFAULT_CLEARNET)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user