Skip to content

Commit 588e077

Browse files
chore(block): remove an unnecessary method override for ConfigureEvm (#69)
1 parent 9d9899d commit 588e077

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/block/src/config.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::{borrow::Cow, convert::Infallible, sync::Arc};
22

33
use alloy_consensus::{BlockHeader, Header};
44
use alloy_eips::Decodable2718;
5-
use alloy_evm::Database;
65
use alloy_hardforks::EthereumHardforks;
76
use alloy_primitives::Bytes;
87
use alloy_rpc_types_eth::Withdrawals;
@@ -17,8 +16,7 @@ use reth::{
1716
use reth_ethereum::EthPrimitives;
1817
use reth_ethereum_forks::Hardforks;
1918
use reth_evm::{
20-
ConfigureEngineEvm, ConfigureEvm, EvmEnv, EvmEnvFor, EvmFactory, EvmFor, ExecutableTxIterator,
21-
ExecutionCtxFor,
19+
ConfigureEngineEvm, ConfigureEvm, EvmEnv, EvmEnvFor, ExecutableTxIterator, ExecutionCtxFor,
2220
};
2321
use reth_evm_ethereum::RethReceiptBuilder;
2422
use reth_node_api::ExecutionPayload;
@@ -248,12 +246,6 @@ impl ConfigureEvm for TaikoEvmConfig {
248246
extra_data: ctx.extra_data,
249247
})
250248
}
251-
252-
/// Returns a new EVM with the given database configured with the given environment settings,
253-
/// including the spec id and transaction environment.
254-
fn evm_with_env<DB: Database>(&self, db: DB, evm_env: EvmEnvFor<Self>) -> EvmFor<Self, DB> {
255-
self.evm_factory().create_evm(db, evm_env)
256-
}
257249
}
258250

259251
/// Context relevant for execution of a next block w.r.t Taiko.

0 commit comments

Comments
 (0)