diff --git a/chain/src/init_load_unverified.rs b/chain/src/init_load_unverified.rs index e2c4ebae00..30b0247cdb 100644 --- a/chain/src/init_load_unverified.rs +++ b/chain/src/init_load_unverified.rs @@ -93,6 +93,15 @@ impl InitLoadUnverified { let unverified_hashes: Vec = self.find_unverified_block_hashes(check_unverified_number); + if check_unverified_number > tip_number && unverified_hashes.is_empty() { + info!( + "no unverified blocks found after tip, current tip: {}-{}", + tip_number, + self.shared.snapshot().tip_hash() + ); + return; + } + for unverified_hash in unverified_hashes { f(&unverified_hash); } diff --git a/test/src/specs/sync/sync_churn.rs b/test/src/specs/sync/sync_churn.rs index 554f580ef6..4770947053 100644 --- a/test/src/specs/sync/sync_churn.rs +++ b/test/src/specs/sync/sync_churn.rs @@ -60,6 +60,11 @@ impl Spec for SyncChurn { if too_many_blocks || restart_stopped_rx.try_recv().is_ok() { break; } + info!( + "mining_node {}, tip: {}", + mining_node.node_id(), + mining_node.get_tip_block_number() + ); waiting_for_sync(&mining_nodes); } });