Trait sp_consensus::block_import::JustificationImport
source · [−]pub trait JustificationImport<B: BlockT> {
type Error: Error + Send + 'static;
fn import_justification(
&mut self,
hash: B::Hash,
number: NumberFor<B>,
justification: Justification
) -> Result<(), Self::Error>;
fn on_start(&mut self) -> Vec<(B::Hash, NumberFor<B>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
{ ... }
}
Expand description
Justification import trait
Associated Types
Required methods
fn import_justification(
&mut self,
hash: B::Hash,
number: NumberFor<B>,
justification: Justification
) -> Result<(), Self::Error>
fn import_justification(
&mut self,
hash: B::Hash,
number: NumberFor<B>,
justification: Justification
) -> Result<(), Self::Error>
Import a Block justification and finalize the given block.