pub trait Validate: Validate {
    type T: Deref<Target = Self>;
    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.

Associated Types

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

Required methods

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

Implementations on Foreign Types

Implementors