Skip to content

Commit

Permalink
produce_block.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Nov 6, 2022
1 parent 76b0584 commit 18220e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/block-producer/src/produce_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub fn produce_block(
};

let last_finalized_timepoint = if rollup_context.determine_global_state_version(number) < 2 {
let finality_as_blocks = rollup_context.rollup_config.finality_as_blocks();
let finality_as_blocks = rollup_context.rollup_config.finality_blocks().unpack();
Timepoint::from_block_number(number.saturating_sub(finality_as_blocks))
} else {
let finality_as_duration = rollup_context.rollup_config.finality_as_duration();
Expand Down

0 comments on commit 18220e0

Please sign in to comment.