chore(execution): rename EVMProcessor factory (#5533)

This commit is contained in:
Roman Krasiuk
2023-11-22 09:03:12 -08:00
committed by GitHub
parent 5ae4fd1c65
commit 9ecdea7eef
17 changed files with 49 additions and 45 deletions

View File

@ -7,14 +7,14 @@ use reth_primitives::ChainSpec;
use reth_provider::{ExecutorFactory, PrunableBlockExecutor, StateProvider};
use std::sync::Arc;
/// Factory that spawn Executor.
/// Factory for creating [EVMProcessor].
#[derive(Clone, Debug)]
pub struct Factory {
pub struct EvmProcessorFactory {
chain_spec: Arc<ChainSpec>,
stack: Option<InspectorStack>,
}
impl Factory {
impl EvmProcessorFactory {
/// Create new factory
pub fn new(chain_spec: Arc<ChainSpec>) -> Self {
Self { chain_spec, stack: None }
@ -33,7 +33,7 @@ impl Factory {
}
}
impl ExecutorFactory for Factory {
impl ExecutorFactory for EvmProcessorFactory {
fn with_state<'a, SP: StateProvider + 'a>(
&'a self,
sp: SP,

View File

@ -22,7 +22,7 @@ pub mod processor;
pub mod state_change;
/// revm executor factory.
pub use factory::Factory;
pub use factory::EvmProcessorFactory;
/// reexport for convenience
pub use reth_revm_inspectors::*;