Trait fuel_core_poa::ports::Database

source ·
pub trait Database {
    // Required methods
    fn block_header(&self, height: &BlockHeight) -> StorageResult<BlockHeader>;
    fn block_header_merkle_root(
        &self,
        height: &BlockHeight,
    ) -> StorageResult<Bytes32>;
}
Expand description

The port for the database.

Required Methods§

source

fn block_header(&self, height: &BlockHeight) -> StorageResult<BlockHeader>

Gets the block header at height.

source

fn block_header_merkle_root( &self, height: &BlockHeight, ) -> StorageResult<Bytes32>

Gets the block header BMT MMR root at height.

Implementors§