pub trait BlockDataProvider: Send + Sync {
    // Required method
    fn get_block_hash(&self, number: &U256) -> H256;
}
Expand description

BlockDataProvider provides functions to get block’s hash from chain.

Block data(only hash) are required to cita-vm from externalize database.

Required Methods§

source

fn get_block_hash(&self, number: &U256) -> H256

Function get_block_hash returns the block_hash of the specific block.

Implementors§