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§

source

fn request_justification(&self, hash: &B::Hash, number: NumberFor<B>)

Request a justification for the given block.

source

fn clear_justification_requests(&self)

Clear all pending justification requests.

Implementations on Foreign Types§

source§

impl<B: BlockT> JustificationSyncLink<B> for ()

source§

impl<B: BlockT, L: JustificationSyncLink<B>> JustificationSyncLink<B> for Arc<L>

Implementors§