Trait sp_consensus::import_queue::Link [−][src]
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<BlockImportResult<NumberFor<B>>, BlockImportError>, B::Hash)>
)
[src]
&mut self,
_imported: usize,
_count: usize,
_results: Vec<(Result<BlockImportResult<NumberFor<B>>, BlockImportError>, B::Hash)>
)
Batch of blocks imported, with or without error.
fn justification_imported(
&mut self,
_who: Origin,
_hash: &B::Hash,
_number: NumberFor<B>,
_success: bool
)
[src]
&mut self,
_who: Origin,
_hash: &B::Hash,
_number: NumberFor<B>,
_success: bool
)
Justification import result.
fn request_justification(&mut self, _hash: &B::Hash, _number: NumberFor<B>)
[src]
Request a justification for the given block.
fn finality_proof_imported(
&mut self,
_who: Origin,
_request_block: (B::Hash, NumberFor<B>),
_finalization_result: Result<(B::Hash, NumberFor<B>), ()>
)
[src]
&mut self,
_who: Origin,
_request_block: (B::Hash, NumberFor<B>),
_finalization_result: Result<(B::Hash, NumberFor<B>), ()>
)
Finality proof import result.
Even though we have asked for finality proof of block A, provider could return proof of some earlier block B, if the proof for A was too large. The sync module should continue asking for proof of A in this case.
fn request_finality_proof(&mut self, _hash: &B::Hash, _number: NumberFor<B>)
[src]
Request a finality proof for the given block.
Implementors
impl<B: BlockT> Link<B> for BufferedLinkSender<B>
[src]
fn blocks_processed(
&mut self,
imported: usize,
count: usize,
results: Vec<(Result<BlockImportResult<NumberFor<B>>, BlockImportError>, B::Hash)>
)
[src]
&mut self,
imported: usize,
count: usize,
results: Vec<(Result<BlockImportResult<NumberFor<B>>, BlockImportError>, B::Hash)>
)
fn justification_imported(
&mut self,
who: Origin,
hash: &B::Hash,
number: NumberFor<B>,
success: bool
)
[src]
&mut self,
who: Origin,
hash: &B::Hash,
number: NumberFor<B>,
success: bool
)
fn request_justification(&mut self, hash: &B::Hash, number: NumberFor<B>)
[src]
fn finality_proof_imported(
&mut self,
who: Origin,
request_block: (B::Hash, NumberFor<B>),
finalization_result: Result<(B::Hash, NumberFor<B>), ()>
)
[src]
&mut self,
who: Origin,
request_block: (B::Hash, NumberFor<B>),
finalization_result: Result<(B::Hash, NumberFor<B>), ()>
)