pub trait EngineValidatorBuilder<Node: FullNodeComponents>:
Send
+ Sync
+ Clone {
type EngineValidator: EngineValidator<<Node::Types as NodeTypes>::Payload, <Node::Types as NodeTypes>::Primitives>;
// Required method
fn build_tree_validator(
self,
ctx: &AddOnsContext<'_, Node>,
tree_config: TreeConfig,
) -> impl Future<Output = Result<Self::EngineValidator>> + 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§
Sourcetype EngineValidator: EngineValidator<<Node::Types as NodeTypes>::Payload, <Node::Types as NodeTypes>::Primitives>
type EngineValidator: EngineValidator<<Node::Types as NodeTypes>::Payload, <Node::Types as NodeTypes>::Primitives>
The tree validator type that will be used by the consensus engine.
Required Methods§
Sourcefn build_tree_validator(
self,
ctx: &AddOnsContext<'_, Node>,
tree_config: TreeConfig,
) -> impl Future<Output = Result<Self::EngineValidator>> + Send
fn build_tree_validator( self, ctx: &AddOnsContext<'_, Node>, tree_config: TreeConfig, ) -> impl Future<Output = Result<Self::EngineValidator>> + 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.