Skip to content
Snippets Groups Projects
Commit 48594ec7 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

[fix] blockchain: sync tells when already synchronized

parent f21c2d99
Branches
Tags
1 merge request!137Resolve "sync print 1 block apply when no blocks applied"
...@@ -195,7 +195,7 @@ pub fn local_sync<DC: DuniterConf>(profile: &str, conf: &DC, sync_opts: SyncOpt) ...@@ -195,7 +195,7 @@ pub fn local_sync<DC: DuniterConf>(profile: &str, conf: &DC, sync_opts: SyncOpt)
debug!("Success to get local current blockstamp."); debug!("Success to get local current blockstamp.");
// Node is already synchronized ? // Node is already synchronized ?
if target_blockstamp.id.0 < current_blockstamp.id.0 { if target_blockstamp.id.0 <= current_blockstamp.id.0 {
println!("Your durs node is already synchronized."); println!("Your durs node is already synchronized.");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment