reth_node_builder::rpc

Trait EngineValidatorAddOn

Source
pub trait EngineValidatorAddOn<Node: FullNodeComponents>: Send {
    type Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine, Block = BlockTy<Node::Types>> + Clone;

    // Required method
    fn engine_validator(
        &self,
        ctx: &AddOnsContext<'_, Node>,
    ) -> impl Future<Output = Result<Self::Validator>>;
}
Expand description

Helper trait that provides the validator for the engine API

Required Associated Types§

Source

type Validator: EngineValidator<<Node::Types as NodeTypesWithEngine>::Engine, Block = BlockTy<Node::Types>> + Clone

The Validator type to use for the engine API.

Required Methods§

Source

fn engine_validator( &self, ctx: &AddOnsContext<'_, Node>, ) -> impl Future<Output = Result<Self::Validator>>

Creates the engine validator for an engine API based node.

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.

Implementors§

Source§

impl<N, EthApi, EV> EngineValidatorAddOn<N> for RpcAddOns<N, EthApi, EV>
where N: FullNodeComponents, EthApi: EthApiTypes, EV: EngineValidatorBuilder<N>,