Trait sp_consensus::block_import::JustificationImport [−][src]
Justification import trait
Associated Types
Required methods
fn import_justification(
&mut self,
hash: B::Hash,
number: NumberFor<B>,
justification: Justification
) -> Result<(), Self::Error>
[src][−]
&mut self,
hash: B::Hash,
number: NumberFor<B>,
justification: Justification
) -> Result<(), Self::Error>
Import a Block justification and finalize the given block.
Provided methods
fn on_start(&mut self) -> Vec<(B::Hash, NumberFor<B>)>
[src][−]
Called by the import queue when it is started. Returns a list of justifications to request from the network.
Implementors
impl<BE, Block: BlockT, Client, SC> JustificationImport<Block> for GrandpaBlockImport<BE, Block, Client, SC> where
NumberFor<Block>: BlockNumberOps,
DigestFor<Block>: Encode,
BE: Backend<Block>,
Client: ClientForGrandpa<Block, BE>,
SC: SelectChain<Block>,
impl<BE, Block: BlockT, Client, SC> JustificationImport<Block> for GrandpaBlockImport<BE, Block, Client, SC> where
NumberFor<Block>: BlockNumberOps,
DigestFor<Block>: Encode,
BE: Backend<Block>,
Client: ClientForGrandpa<Block, BE>,
SC: SelectChain<Block>,