Trait fuel_core_p2p::ports::P2pDb
source · pub trait P2pDb: Send + Sync {
// Required methods
fn get_sealed_headers(
&self,
block_height_range: Range<u32>,
) -> StorageResult<Vec<SealedBlockHeader>>;
fn get_transactions(
&self,
block_height_range: Range<u32>,
) -> StorageResult<Option<Vec<Transactions>>>;
fn get_genesis(&self) -> StorageResult<Genesis>;
}