Trait fuel_core::query::BlockQueryData
source · pub trait BlockQueryData: Send + Sync + SimpleBlockData {
// Required methods
fn latest_block_height(&self) -> StorageResult<BlockHeight>;
fn latest_block(&self) -> StorageResult<CompressedBlock>;
fn compressed_blocks(
&self,
height: Option<BlockHeight>,
direction: IterDirection,
) -> BoxedIter<'_, StorageResult<CompressedBlock>>;
fn consensus(&self, id: &BlockHeight) -> StorageResult<Consensus>;
}