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>>>;
}

Required Methods§

source

fn get_sealed_block( &self, height: &BlockHeight ) -> StorageResult<Option<SealedBlock>>

source

fn get_sealed_header( &self, height: &BlockHeight ) -> StorageResult<Option<SealedBlockHeader>>

source

fn get_transactions( &self, block_id: &BlockId ) -> StorageResult<Option<Vec<Transaction>>>

Implementors§