pub trait Validate: Validate {
    type T: Deref<Target = Self>;

    // Required method
    fn validate(self, block_hash: BlockHash) -> BlockSourceResult<Self::T>;
}
Expand description

The Validate trait defines behavior for validating chain data.

This trait is sealed and not meant to be implemented outside of this crate.

Required Associated Types§

source

type T: Deref<Target = Self>

The validated data wrapper which can be dereferenced to obtain the validated data.

Required Methods§

source

fn validate(self, block_hash: BlockHash) -> BlockSourceResult<Self::T>

Validates the chain data against the given block hash and any criteria needed to ensure that it is internally consistent.

Implementors§