Trait sp_consensus::CanAuthorWith [−][src]
pub trait CanAuthorWith<Block: BlockT> { fn can_author_with(&self, at: &BlockId<Block>) -> Result<(), String>; }
Expand description
Checks if the current active native block authoring implementation can author with the runtime at the given block.
Required methods
See trait docs for more information.
Return
- Returns
Ok(())
when authoring is supported. - Returns
Err(_)
when authoring is not supported.
Implementors
impl<T: GetRuntimeVersionAt<Block> + GetNativeVersion, Block: BlockT> CanAuthorWith<Block> for CanAuthorWithNativeVersion<T>