Trait fuel_core_p2p::ports::P2pDb
source · pub trait P2pDb: Send + Sync {
// Required methods
fn get_sealed_block(
&self,
height: &BlockHeight
) -> StorageResult<Option<SealedBlock>>;
fn get_sealed_header(
&self,
height: &BlockHeight
) -> StorageResult<Option<SealedBlockHeader>>;
fn get_transactions(
&self,
block_id: &BlockId
) -> StorageResult<Option<Vec<Transaction>>>;
}