Skip to content

Commit

Permalink
add log for start height (#207)
Browse files Browse the repository at this point in the history
Add a log for consensus start height so it's clear whether the db was
cleared.
  • Loading branch information
aditiharini authored Jan 10, 2025
1 parent 2ee4687 commit 8cba96e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/consensus/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,11 @@ impl Consensus {

let height = state.consensus.driver.height();
send_after(Duration::from_secs(10), myself.get_cell(), move || {
info!("Starting consensus");
info!(
shard_index = height.shard_index,
height = height.block_number,
"Starting consensus"
);
ConsensusMsg::<SnapchainValidatorContext>::StartHeight(height)
});
}
Expand Down

0 comments on commit 8cba96e

Please sign in to comment.