referrerpolicy=no-referrer-when-downgrade

Trait sp_version::GetRuntimeVersionAt

source ·
pub trait GetRuntimeVersionAt<Block: BlockT> {
    // Required method
    fn runtime_version(
        &self,
        at: <Block as BlockT>::Hash,
    ) -> Result<RuntimeVersion, String>;
}
Expand description

Something that can provide the runtime version at a given block.

Required Methods§

source

fn runtime_version( &self, at: <Block as BlockT>::Hash, ) -> Result<RuntimeVersion, String>

Returns the version of runtime at the given block.

Implementations on Foreign Types§

source§

impl<T: GetRuntimeVersionAt<Block>, Block: BlockT> GetRuntimeVersionAt<Block> for Arc<T>

source§

fn runtime_version( &self, at: <Block as BlockT>::Hash, ) -> Result<RuntimeVersion, String>

Implementors§