[][src]Trait sp_consensus::import_queue::Verifier

pub trait Verifier<B: BlockT>: Send + Sync {
    fn verify(
        &mut self,
        origin: BlockOrigin,
        header: B::Header,
        justification: Option<Justification>,
        body: Option<Vec<B::Extrinsic>>
    ) -> Result<(BlockImportParams<B, ()>, Option<Vec<(CacheKeyId, Vec<u8>)>>), String>; }

Verify a justification of a block

Required methods

fn verify(
    &mut self,
    origin: BlockOrigin,
    header: B::Header,
    justification: Option<Justification>,
    body: Option<Vec<B::Extrinsic>>
) -> Result<(BlockImportParams<B, ()>, Option<Vec<(CacheKeyId, Vec<u8>)>>), String>

Verify the given data and return the BlockImportParams and an optional new set of validators to import. If not, err with an Error-Message presented to the User in the logs.

Loading content...

Implementors

Loading content...