pub trait JustificationSyncLink<B: BlockT>: Send + Sync {
// Required methods
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§
sourcefn 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.
sourcefn clear_justification_requests(&self)
fn clear_justification_requests(&self)
Clear all pending justification requests.