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§
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(
&self,
da_height: &DaBlockHeight,
) -> impl Future<Output = Result<()>> + Send
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.