Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wait synced requires initial connected peer #1359

6 changes: 4 additions & 2 deletions src-tauri/src/node_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl MinotariNodeAdapter {
grpc_port: port,
tcp_listener_port,
use_pruned_mode: false,
required_initial_peers: 3,
required_initial_peers: 2,
use_tor: false,
tor_control_port: None,
latest_status_broadcast: status_broadcast,
Expand Down Expand Up @@ -468,7 +468,9 @@ 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 >= self.required_sync_peers as u64
{
break Ok(());
}

Expand Down
Loading