feat: introduce evm config trait (#6461)

Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
This commit is contained in:
Matthias Seitz
2024-02-23 23:39:24 +01:00
committed by GitHub
parent 0ddb753d6c
commit a7e183d1a5
24 changed files with 198 additions and 168 deletions

View File

@ -17,6 +17,7 @@ use reth_downloaders::{
};
use reth_interfaces::{
consensus::Consensus,
executor::BlockExecutionError,
p2p::{bodies::client::BodiesClient, either::EitherDownloader, headers::client::HeadersClient},
sync::NoopSyncStateUpdater,
test_utils::{NoopFullBlockClient, TestConsensus},
@ -174,7 +175,7 @@ where
fn with_state<'a, SP: reth_provider::StateProvider + 'a>(
&'a self,
sp: SP,
) -> Box<dyn PrunableBlockExecutor + 'a> {
) -> Box<dyn PrunableBlockExecutor<Error = BlockExecutionError> + 'a> {
match self {
EitherExecutorFactory::Left(a) => a.with_state::<'a, SP>(sp),
EitherExecutorFactory::Right(b) => b.with_state::<'a, SP>(sp),