Trait node_testing::client::sp_consensus::block_validation::Chain
source · pub trait Chain<B>where
B: Block,{
// Required method
fn block_status(
&self,
hash: <B as Block>::Hash,
) -> Result<BlockStatus, Box<dyn Error + Send>>;
}
Expand description
A type which provides access to chain information.
Required Methods§
sourcefn block_status(
&self,
hash: <B as Block>::Hash,
) -> Result<BlockStatus, Box<dyn Error + Send>>
fn block_status( &self, hash: <B as Block>::Hash, ) -> Result<BlockStatus, Box<dyn Error + Send>>
Retrieve the status of the block denoted by the given Block::Hash
.