Trait ConsensusPort

Source
pub trait ConsensusPort {
    // Required methods
    fn check_sealed_header(&self, header: &SealedBlockHeader) -> Result<bool>;
    fn await_da_height(
        &self,
        da_height: &DaBlockHeight,
    ) -> impl Future<Output = Result<()>> + Send;
}
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( &self, da_height: &DaBlockHeight, ) -> impl Future<Output = Result<()>> + Send

await for this DA height to be sync’d.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§