chore: extract block execution errors (#8386)

This commit is contained in:
Matthias Seitz
2024-05-24 12:11:08 +02:00
committed by GitHub
parent 6df2b1c1e9
commit 9f61d1856f
17 changed files with 78 additions and 39 deletions

View File

@ -1,6 +1,6 @@
//! Error types for the Optimism EVM module.
use reth_interfaces::executor::BlockExecutionError;
use reth_evm::execute::BlockExecutionError;
/// Optimism Block Executor Errors
#[derive(thiserror::Error, Debug, Clone, PartialEq, Eq)]

View File

@ -3,15 +3,11 @@
use crate::{l1::ensure_create2_deployer, OptimismBlockExecutionError, OptimismEvmConfig};
use reth_evm::{
execute::{
BatchBlockExecutionOutput, BatchExecutor, BlockExecutionInput, BlockExecutionOutput,
BlockExecutorProvider, Executor,
BatchBlockExecutionOutput, BatchExecutor, BlockExecutionError, BlockExecutionInput,
BlockExecutionOutput, BlockExecutorProvider, BlockValidationError, Executor, ProviderError,
},
ConfigureEvm,
};
use reth_interfaces::{
executor::{BlockExecutionError, BlockValidationError},
provider::ProviderError,
};
use reth_optimism_consensus::validate_block_post_execution;
use reth_primitives::{
BlockNumber, BlockWithSenders, ChainSpec, Hardfork, Header, PruneModes, Receipt, Receipts,