Skip to content

Commit

Permalink
use unified entry point for pre block calls in invalid block hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Sep 30, 2024
1 parent 1eee298 commit 86f707c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions crates/engine/invalid-block-hooks/src/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,7 @@ where
let mut system_caller = SystemCaller::new(&self.evm_config, self.provider.chain_spec());

// Apply pre-block system contract calls.
system_caller.apply_beacon_root_contract_call(
block.timestamp,
block.number,
block.parent_beacon_block_root,
&mut evm,
)?;
system_caller.apply_blockhashes_contract_call(
block.timestamp,
block.number,
block.parent_hash,
&mut evm,
)?;
system_caller.apply_pre_execution_changes(&block.clone().unseal(), &mut evm)?;

// Re-execute all of the transactions in the block to load all touched accounts into
// the cache DB.
Expand Down

0 comments on commit 86f707c

Please sign in to comment.