Skip to content

Commit

Permalink
Fix add_epoch_root call on decide (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-es authored Mar 6, 2025
1 parent 1d535da commit 0fa901b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hotshot-task-impls/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async fn decide_epoch_root<TYPES: NodeType>(
// Skip if this is not the expected block.
if epoch_height != 0 && is_epoch_root(decided_block_number, epoch_height) {
let next_epoch_number =
TYPES::Epoch::new(epoch_from_block_number(decided_block_number, epoch_height) + 1);
TYPES::Epoch::new(epoch_from_block_number(decided_block_number, epoch_height) + 2);

let write_callback = {
tracing::debug!("Calling add_epoch_root for epoch {:?}", next_epoch_number);
Expand Down

0 comments on commit 0fa901b

Please sign in to comment.