pub trait Verifier<B: BlockT>: Send + Sync {
// Required method
fn verify<'life0, 'async_trait>(
&'life0 self,
block: BlockImportParams<B>,
) -> Pin<Box<dyn Future<Output = Result<BlockImportParams<B>, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Verify a justification of a block
Required Methods§
Sourcefn verify<'life0, 'async_trait>(
&'life0 self,
block: BlockImportParams<B>,
) -> Pin<Box<dyn Future<Output = Result<BlockImportParams<B>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn verify<'life0, 'async_trait>(
&'life0 self,
block: BlockImportParams<B>,
) -> Pin<Box<dyn Future<Output = Result<BlockImportParams<B>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Verify the given block data and return the BlockImportParams to
continue the block import process.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".