fuel_core_poa::ports

Trait RelayerPort

source
pub trait RelayerPort {
    // Required method
    fn await_until_if_in_range<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        da_height: &'life1 DaBlockHeight,
        max_da_lag: &'life2 DaBlockHeight,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Port for communication with the relayer.

Required Methods§

source

fn await_until_if_in_range<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, da_height: &'life1 DaBlockHeight, max_da_lag: &'life2 DaBlockHeight, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Wait for the relayer to be in sync with the given DA height if the da_height is within the range of the current relayer sync’d height - max_da_lag.

Implementors§