Trait fuel_core_sync::ports::ConsensusPort

source ·
pub trait ConsensusPort {
    // Required methods
    fn check_sealed_header(&self, header: &SealedBlockHeader) -> Result<bool>;
    fn await_da_height<'life0, 'life1, 'async_trait>(
        &'life0 self,
        da_height: &'life1 DaBlockHeight,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Port for communication with the consensus service.

Required Methods§

source

fn check_sealed_header(&self, header: &SealedBlockHeader) -> Result<bool>

Check if the given sealed block header is valid.

source

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

await for this DA height to be sync’d.

Implementors§