pub trait PayloadValidatorBuilder<Node>:
Send
+ Sync
+ Clonewhere
Node: FullNodeComponents,{
type Validator: PayloadValidator<<<Node as FullNodeTypes>::Types as NodeTypes>::Payload>;
// Required method
fn build(
self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::Validator, Report>> + Send;
}
Expand description
Builder trait for creating payload validators specifically for the Engine API.
This trait is responsible for building validators that the Engine API will use to validate payloads.
Required Associated Types§
Sourcetype Validator: PayloadValidator<<<Node as FullNodeTypes>::Types as NodeTypes>::Payload>
type Validator: PayloadValidator<<<Node as FullNodeTypes>::Types as NodeTypes>::Payload>
The validator type that will be used by the Engine API.
Required Methods§
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.