Trait sp_consensus::block_import::FinalityProofImport[][src]

pub trait FinalityProofImport<B: BlockT> {
    type Error: Error + Send + 'static;
    fn import_finality_proof(
        &mut self,
        hash: B::Hash,
        number: NumberFor<B>,
        finality_proof: Vec<u8>,
        verifier: &mut dyn Verifier<B>
    ) -> Result<(B::Hash, NumberFor<B>), Self::Error>; fn on_start(&mut self) -> Vec<(B::Hash, NumberFor<B>)> { ... } }

Finality proof import trait.

Associated Types

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

Loading content...

Required methods

fn import_finality_proof(
    &mut self,
    hash: B::Hash,
    number: NumberFor<B>,
    finality_proof: Vec<u8>,
    verifier: &mut dyn Verifier<B>
) -> Result<(B::Hash, NumberFor<B>), Self::Error>
[src]

Import a Block justification and finalize the given block. Returns finalized block or error.

Loading content...

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 finality proofs to request from the network.

Loading content...

Implementors

Loading content...