referrerpolicy=no-referrer-when-downgrade

Trait finality_relay::SourceClient

source ·
pub trait SourceClient<P: FinalitySyncPipeline>: SourceClientBase<P> {
    // Required methods
    fn best_finalized_block_number<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<P::Number, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn header_and_finality_proof<'life0, 'async_trait>(
        &'life0 self,
        number: P::Number,
    ) -> Pin<Box<dyn Future<Output = Result<(P::Header, Option<P::FinalityProof>), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Source client used in finality synchronization loop.

Required Methods§

source

fn best_finalized_block_number<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<P::Number, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get best finalized block number.

source

fn header_and_finality_proof<'life0, 'async_trait>( &'life0 self, number: P::Number, ) -> Pin<Box<dyn Future<Output = Result<(P::Header, Option<P::FinalityProof>), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get canonical header and its finality proof by number.

Object Safety§

This trait is not object safe.

Implementors§