pub trait BlockProvider {
    // Required methods
    fn get_block_epoch_number(&self, hash: &H256) -> Option<u64>;
    fn get_block_hashes_by_epoch(
        &self,
        epoch_number: EpochNumber
    ) -> Result<Vec<H256>, String>;
}

Required Methods§

source

fn get_block_epoch_number(&self, hash: &H256) -> Option<u64>

source

fn get_block_hashes_by_epoch( &self, epoch_number: EpochNumber ) -> Result<Vec<H256>, String>

Implementors§