Trait lightning_block_sync::poll::Validate
source · [−]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
Required methods
fn validate(self, block_hash: BlockHash) -> BlockSourceResult<Self::T>
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.