Trait frame_try_runtime::TryRuntime[][src]

pub trait TryRuntime<Block: BlockT>: Core<Block> {
    fn on_runtime_upgrade(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Result<(Weight, Weight), RuntimeString>, ApiError> { ... }
fn on_runtime_upgrade_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Result<(Weight, Weight), RuntimeString>, ApiError> { ... } }
Expand description

Runtime api for testing the execution of a runtime upgrade.

Provided methods

dry-run runtime upgrades, returning the total weight consumed.

This should do EXACTLY the same operations as the runtime would have done in the case of a runtime upgrade (e.g. pallet ordering must be the same)

Returns the consumed weight of the migration in case of a successful one, combined with the total allowed block weight of the runtime.

dry-run runtime upgrades, returning the total weight consumed.

This should do EXACTLY the same operations as the runtime would have done in the case of a runtime upgrade (e.g. pallet ordering must be the same)

Returns the consumed weight of the migration in case of a successful one, combined with the total allowed block weight of the runtime.

Trait Implementations

The identifier of the runtime api.

The version of the runtime api.

Implementors