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§
sourcefn check_sealed_header(&self, header: &SealedBlockHeader) -> Result<bool>
fn check_sealed_header(&self, header: &SealedBlockHeader) -> Result<bool>
Check if the given sealed block header is valid.
sourcefn 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,
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.