From 75cdbb9ee677d7f150fce658141f81934b35c387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Papie=C5=BC?= Date: Wed, 8 Jan 2025 11:33:08 +0100 Subject: [PATCH] fix: require initial connected peer for wait synced --- src-tauri/src/node_adapter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/node_adapter.rs b/src-tauri/src/node_adapter.rs index 0479c4ccd..1c3fedcb1 100644 --- a/src-tauri/src/node_adapter.rs +++ b/src-tauri/src/node_adapter.rs @@ -468,7 +468,7 @@ impl MinotariNodeStatusMonitor { .map_err(|e| MinotariNodeStatusMonitorError::UnknownError(e.into()))?; let tip_res = tip.into_inner(); let sync_progress = sync_progress.into_inner(); - if tip_res.initial_sync_achieved { + if tip_res.initial_sync_achieved && sync_progress.initial_connected_peers > 0 { break Ok(()); }