Trait sc_consensus::import_queue::Verifier[][src]

pub trait Verifier<B: BlockT>: Send + Sync {
    fn verify<'life0, 'async_trait>(
        &'life0 mut self,
        block: BlockImportParams<B, ()>
    ) -> Pin<Box<dyn Future<Output = Result<(BlockImportParams<B, ()>, Option<Vec<(CacheKeyId, Vec<u8>)>>), String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Verify a justification of a block

Required methods

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.

Implementors