reth::builder::rpc

Trait EngineValidatorAddOn

Source
pub trait EngineValidatorAddOn<Node>: Send
where Node: FullNodeComponents,
{ type Validator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypesWithEngine>::Engine>; // Required method fn engine_validator( &self, ctx: &AddOnsContext<'_, Node>, ) -> impl Future<Output = Result<Self::Validator, Report>>; }
Expand description

Helper trait that provides the validator for the engine API

Required Associated Types§

Source

type Validator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypesWithEngine>::Engine>

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, Report>>

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>