Trait sp_consensus::block_validation::Chain [−][src]
pub trait Chain<B: Block> { fn block_status(
&self,
id: &BlockId<B>
) -> Result<BlockStatus, Box<dyn Error + Send>>; }
Expand description
A type which provides access to chain information.
Required methods
fn block_status(
&self,
id: &BlockId<B>
) -> Result<BlockStatus, Box<dyn Error + Send>>
fn block_status(
&self,
id: &BlockId<B>
) -> Result<BlockStatus, Box<dyn Error + Send>>
Retrieve the status of the block denoted by the given BlockId
.
Implementations on Foreign Types
Implementors
impl<BE, E, B, RA> Chain<B> for Client<BE, E, B, RA> where
BE: Backend<B>,
E: CallExecutor<B>,
B: BlockT,
impl<BE, E, B, RA> Chain<B> for Client<BE, E, B, RA> where
BE: Backend<B>,
E: CallExecutor<B>,
B: BlockT,