sp_consensus::block_validation

Trait Chain

Source
pub trait Chain<B: Block> {
    // Required method
    fn block_status(
        &self,
        hash: B::Hash,
    ) -> Result<BlockStatus, Box<dyn Error + Send>>;
}
Expand description

A type which provides access to chain information.

Required Methods§

Source

fn block_status( &self, hash: B::Hash, ) -> Result<BlockStatus, Box<dyn Error + Send>>

Retrieve the status of the block denoted by the given Block::Hash.

Implementations on Foreign Types§

Source§

impl<T: Chain<B>, B: Block> Chain<B> for Arc<T>

Source§

fn block_status( &self, hash: B::Hash, ) -> Result<BlockStatus, Box<dyn Error + Send>>

Implementors§