referrerpolicy=no-referrer-when-downgrade

Trait sc_consensus::import_queue::Link

source ·
pub trait Link<B: BlockT>: Send + Sync {
    // Provided methods
    fn blocks_processed(
        &self,
        _imported: usize,
        _count: usize,
        _results: Vec<(Result<BlockImportStatus<NumberFor<B>>, BlockImportError>, B::Hash)>,
    ) { ... }
    fn justification_imported(
        &self,
        _who: RuntimeOrigin,
        _hash: &B::Hash,
        _number: NumberFor<B>,
        _success: bool,
    ) { ... }
    fn request_justification(&self, _hash: &B::Hash, _number: NumberFor<B>) { ... }
}
Expand description

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

Provided Methods§

source

fn blocks_processed( &self, _imported: usize, _count: usize, _results: Vec<(Result<BlockImportStatus<NumberFor<B>>, BlockImportError>, B::Hash)>, )

Batch of blocks imported, with or without error.

source

fn justification_imported( &self, _who: RuntimeOrigin, _hash: &B::Hash, _number: NumberFor<B>, _success: bool, )

Justification import result.

source

fn request_justification(&self, _hash: &B::Hash, _number: NumberFor<B>)

Request a justification for the given block.

Implementors§

source§

impl<B: BlockT> Link<B> for BufferedLinkSender<B>