fuel_poa_coordinator::ports

Trait BlockDb

Source
pub trait BlockDb: Send + Sync {
    // Required methods
    fn block_height(&self) -> Result<BlockHeight>;
    fn seal_block(
        &mut self,
        block_id: BlockId,
        consensus: FuelBlockConsensus,
    ) -> Result<()>;
}

Required Methods§

Source

fn block_height(&self) -> Result<BlockHeight>

Source

fn seal_block( &mut self, block_id: BlockId, consensus: FuelBlockConsensus, ) -> Result<()>

Implementors§