pub trait BlockProducerDatabase: Send + Sync {
fn get_block(
&self,
fuel_height: BlockHeight
) -> Result<Option<Cow<'_, FuelBlockDb>>>;
fn current_block_height(&self) -> Result<BlockHeight>;
}
Required Methods§
sourcefn get_block(
&self,
fuel_height: BlockHeight
) -> Result<Option<Cow<'_, FuelBlockDb>>>
fn get_block(
&self,
fuel_height: BlockHeight
) -> Result<Option<Cow<'_, FuelBlockDb>>>
Fetch previously committed block at given height.
sourcefn current_block_height(&self) -> Result<BlockHeight>
fn current_block_height(&self) -> Result<BlockHeight>
Fetch the current block height.