referrerpolicy=no-referrer-when-downgrade

Trait finality_relay::TargetClient

source ·
pub trait TargetClient<P: FinalitySyncPipeline>: RelayClient {
    type TransactionTracker: TransactionTracker;

    // Required methods
    fn best_finalized_source_block_id<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<HeaderId<P::Hash, P::Number>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn free_source_headers_interval<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<P::Number>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_finality_proof<'life0, 'async_trait>(
        &'life0 self,
        header: P::Header,
        proof: P::FinalityProof,
        is_free_execution_expected: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Target client used in finality synchronization loop.

Required Associated Types§

source

type TransactionTracker: TransactionTracker

Transaction tracker to track submitted transactions.

Required Methods§

source

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

Get best finalized source block number.

source

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

Get free source headers submission interval, if it is configured in the target runtime.

source

fn submit_finality_proof<'life0, 'async_trait>( &'life0 self, header: P::Header, proof: P::FinalityProof, is_free_execution_expected: bool, ) -> Pin<Box<dyn Future<Output = Result<Self::TransactionTracker, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Submit header finality proof.

Object Safety§

This trait is not object safe.

Implementors§