fuel_block_producer::ports

Trait BlockProducerDatabase

Source
pub trait BlockProducerDatabase: Send + Sync {
    // Required methods
    fn get_block(
        &self,
        fuel_height: BlockHeight,
    ) -> Result<Option<Cow<'_, FuelBlockDb>>>;
    fn current_block_height(&self) -> Result<BlockHeight>;
}

Required Methods§

Source

fn get_block( &self, fuel_height: BlockHeight, ) -> Result<Option<Cow<'_, FuelBlockDb>>>

Fetch previously committed block at given height.

Source

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

Fetch the current block height.

Implementors§