1use cfx_types::H256; 2use primitives::BlockHeader; 3use std::sync::Arc; 4 5pub trait ConsensusProvider { 6 fn num_blocks_in_epoch(&self, hash: &H256) -> u64; 7 8 fn block_header_by_hash(&self, hash: &H256) -> Option<Arc<BlockHeader>>; 9}