Trait phron_finality::data_io::chain_info::ChainInfoProvider
source · pub trait ChainInfoProvider: Send + Sync + 'static {
// Required methods
fn is_block_imported(&mut self, block: &BlockId) -> bool;
fn get_finalized_at(&mut self, number: BlockNumber) -> Result<BlockId, ()>;
fn get_parent_hash(&mut self, block: &BlockId) -> Result<BlockHash, ()>;
fn get_highest_finalized(&mut self) -> BlockId;
}