Trait sc_consensus::import_queue::Link [−][src]
pub trait Link<B: BlockT>: Send { fn blocks_processed(
&mut self,
_imported: usize,
_count: usize,
_results: Vec<(Result<BlockImportStatus<NumberFor<B>>, BlockImportError>, B::Hash)>
) { ... } fn justification_imported(
&mut self,
_who: Origin,
_hash: &B::Hash,
_number: NumberFor<B>,
_success: bool
) { ... } fn request_justification(&mut self, _hash: &B::Hash, _number: NumberFor<B>) { ... } }
Expand description
Hooks that the verification queue can use to influence the synchronization algorithm.
Provided methods
fn blocks_processed(
&mut self,
_imported: usize,
_count: usize,
_results: Vec<(Result<BlockImportStatus<NumberFor<B>>, BlockImportError>, B::Hash)>
)
fn blocks_processed(
&mut self,
_imported: usize,
_count: usize,
_results: Vec<(Result<BlockImportStatus<NumberFor<B>>, BlockImportError>, B::Hash)>
)
Batch of blocks imported, with or without error.
Justification import result.
fn request_justification(&mut self, _hash: &B::Hash, _number: NumberFor<B>)
fn request_justification(&mut self, _hash: &B::Hash, _number: NumberFor<B>)
Request a justification for the given block.