[][src]Trait sp_consensus::import_queue::Link

pub trait Link<B: BlockT>: Send {
    pub fn blocks_processed(
        &mut self,
        _imported: usize,
        _count: usize,
        _results: Vec<(Result<BlockImportResult<NumberFor<B>>, BlockImportError>, B::Hash)>
    ) { ... }
pub fn justification_imported(
        &mut self,
        _who: Origin,
        _hash: &B::Hash,
        _number: NumberFor<B>,
        _success: bool
    ) { ... }
pub fn request_justification(
        &mut self,
        _hash: &B::Hash,
        _number: NumberFor<B>
    ) { ... } }

Hooks that the verification queue can use to influence the synchronization algorithm.

Provided methods

pub fn blocks_processed(
    &mut self,
    _imported: usize,
    _count: usize,
    _results: Vec<(Result<BlockImportResult<NumberFor<B>>, BlockImportError>, B::Hash)>
)
[src]

Batch of blocks imported, with or without error.

pub fn justification_imported(
    &mut self,
    _who: Origin,
    _hash: &B::Hash,
    _number: NumberFor<B>,
    _success: bool
)
[src]

Justification import result.

pub fn request_justification(&mut self, _hash: &B::Hash, _number: NumberFor<B>)[src]

Request a justification for the given block.

Loading content...

Implementors

impl<B: BlockT> Link<B> for BufferedLinkSender<B>[src]

Loading content...