[][src]Trait sp_consensus::block_import::JustificationImport

pub trait JustificationImport<B: BlockT> {
    type Error: Error + Send + 'static;
    pub fn import_justification(
        &mut self,
        hash: B::Hash,
        number: NumberFor<B>,
        justification: Justification
    ) -> Result<(), Self::Error>; pub fn on_start(&mut self) -> Vec<(B::Hash, NumberFor<B>)> { ... } }

Justification import trait

Associated Types

type Error: Error + Send + 'static[src]

Loading content...

Required methods

pub fn import_justification(
    &mut self,
    hash: B::Hash,
    number: NumberFor<B>,
    justification: Justification
) -> Result<(), Self::Error>
[src]

Import a Block justification and finalize the given block.

Loading content...

Provided methods

pub 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.

Loading content...

Implementors

Loading content...