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§
sourcefn block_header(&self, height: &BlockHeight) -> StorageResult<BlockHeader>
fn block_header(&self, height: &BlockHeight) -> StorageResult<BlockHeader>
Gets the block header at height
.
sourcefn block_header_merkle_root(
&self,
height: &BlockHeight,
) -> StorageResult<Bytes32>
fn block_header_merkle_root( &self, height: &BlockHeight, ) -> StorageResult<Bytes32>
Gets the block header BMT MMR root at height
.