reth::builder::components

Trait ExecutorBuilder

Source
pub trait ExecutorBuilder<Node>: Send
where Node: FullNodeTypes,
{ type EVM: ConfigureEvm<Header = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::BlockHeader, Transaction = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::SignedTx>; type Executor: BlockExecutorProvider<Primitives = <<Node as FullNodeTypes>::Types as NodeTypes>::Primitives>; // Required method fn build_evm( self, ctx: &BuilderContext<Node>, ) -> impl Future<Output = Result<(Self::EVM, Self::Executor), Report>> + Send; }
Expand description

A type that knows how to build the executor types.

Required Associated Types§

Source

type EVM: ConfigureEvm<Header = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::BlockHeader, Transaction = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::SignedTx>

The EVM config to use.

This provides the node with the necessary configuration to configure an EVM.

Source

type Executor: BlockExecutorProvider<Primitives = <<Node as FullNodeTypes>::Types as NodeTypes>::Primitives>

The type that knows how to execute blocks.

Required Methods§

Source

fn build_evm( self, ctx: &BuilderContext<Node>, ) -> impl Future<Output = Result<(Self::EVM, Self::Executor), Report>> + Send

Creates the EVM config.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Types, Node> ExecutorBuilder<Node> for EthereumExecutorBuilder
where Types: NodeTypesWithEngine<ChainSpec = ChainSpec, Primitives = EthPrimitives>, Node: FullNodeTypes<Types = Types>,

Source§

type EVM = EthEvmConfig

Source§

type Executor = BasicBlockExecutorProvider<EthExecutionStrategyFactory>

Source§

async fn build_evm( self, ctx: &BuilderContext<Node>, ) -> Result<(<EthereumExecutorBuilder as ExecutorBuilder<Node>>::EVM, <EthereumExecutorBuilder as ExecutorBuilder<Node>>::Executor), Report>

Implementors§

Source§

impl<Node, F, Fut, EVM, Executor> ExecutorBuilder<Node> for F
where Node: FullNodeTypes, EVM: ConfigureEvm<Header = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::BlockHeader, Transaction = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::SignedTx>, Executor: BlockExecutorProvider<Primitives = <<Node as FullNodeTypes>::Types as NodeTypes>::Primitives>, F: FnOnce(&BuilderContext<Node>) -> Fut + Send, Fut: Future<Output = Result<(EVM, Executor), Report>> + Send,

Source§

type EVM = EVM

Source§

type Executor = Executor