From 8d66087d68d016346b962701d7a4425584456ff6 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 9 Jul 2024 16:06:36 +0300 Subject: [PATCH] node: do not restart on 0 peers --- src/node/node.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/node/node.rs b/src/node/node.rs index 04d85cf..4f081a6 100644 --- a/src/node/node.rs +++ b/src/node/node.rs @@ -300,12 +300,6 @@ impl Node { NODE_STATE.starting.store(false, Ordering::Relaxed); first_start = false; } - - // Restart node on running status and 0 peers (usual case for Mobile). - if stats.peer_count == 0 && stats.sync_status == SyncStatus::NoSync { - Node::restart(); - continue; - } } // Reset stratum server start flag.