From 18220e010693688928ad9c2158c4460a3f2e7774 Mon Sep 17 00:00:00 2001 From: keroro Date: Sun, 6 Nov 2022 17:47:56 +0800 Subject: [PATCH] produce_block.rs --- crates/block-producer/src/produce_block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/block-producer/src/produce_block.rs b/crates/block-producer/src/produce_block.rs index 82a0e105d..f68465a36 100644 --- a/crates/block-producer/src/produce_block.rs +++ b/crates/block-producer/src/produce_block.rs @@ -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();