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

Required Methods§

Implementors§