Trait sc_consensus::block_import::JustificationSyncLink [−][src]
pub trait JustificationSyncLink<B: BlockT>: Send + Sync { fn request_justification(&self, hash: &B::Hash, number: NumberFor<B>); fn clear_justification_requests(&self); }
Expand description
Control the synchronization process of block justifications.
When importing blocks different consensus engines might require that additional finality data is provided (i.e. a justification for the block). This trait abstracts the required methods to issue those requests
Required methods
fn request_justification(&self, hash: &B::Hash, number: NumberFor<B>)
fn request_justification(&self, hash: &B::Hash, number: NumberFor<B>)
Request a justification for the given block.
fn clear_justification_requests(&self)
fn clear_justification_requests(&self)
Clear all pending justification requests.