fuel_core_p2p::ports

Trait P2pDb

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

Required Methods§

Implementors§