fuel_core_sync::ports

Trait 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§