EngineValidatorBuilder

Trait EngineValidatorBuilder 

Source
pub trait EngineValidatorBuilder<Node>:
    Send
    + Sync
    + Clone
where Node: FullNodeComponents,
{ type EngineValidator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypes>::Payload, <<Node as FullNodeTypes>::Types as NodeTypes>::Primitives>; // Required method fn build_tree_validator( self, ctx: &AddOnsContext<'_, Node>, tree_config: TreeConfig, ) -> impl Future<Output = Result<Self::EngineValidator, Report>> + Send; }
Expand description

Builder trait for creating engine validators for the consensus engine.

This trait is responsible for building validators that the consensus engine will use for block execution, state validation, and fork handling.

Required Associated Types§

Source

type EngineValidator: EngineValidator<<<Node as FullNodeTypes>::Types as NodeTypes>::Payload, <<Node as FullNodeTypes>::Types as NodeTypes>::Primitives>

The tree validator type that will be used by the consensus engine.

Required Methods§

Source

fn build_tree_validator( self, ctx: &AddOnsContext<'_, Node>, tree_config: TreeConfig, ) -> impl Future<Output = Result<Self::EngineValidator, Report>> + Send

Builds the tree validator for the consensus engine.

Returns a validator that handles block execution, state validation, and fork handling.

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§