Skip to content

Commit

Permalink
Import warp synced block as best block. Avoid incomplete import pipel…
Browse files Browse the repository at this point in the history
…ine.
  • Loading branch information
skunert committed Jan 6, 2025
1 parent 721f6d9 commit 3d9eddb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ where
// This is done for example when gap syncing and it is expected that the block after the gap
// was checked/chosen properly, e.g. by warp syncing to this block using a finality proof.
if block_params.state_action.skip_execution_checks() || block_params.with_state() {
block_params.fork_choice = Some(ForkChoiceStrategy::Custom(block_params.with_state()));
return Ok(block_params)
}

Expand Down

0 comments on commit 3d9eddb

Please # to comment.