mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-11 09:18:54 +00:00
node: restart with 0 peers and running status
This commit is contained in:
@@ -287,6 +287,12 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
if stratum_start_requested && NODE_STATE.stratum_stats.read().is_running {
|
||||
|
||||
Reference in New Issue
Block a user