authorize_upgrade_without_checks

Call v151 → current #10

Authorize upgrade without version validation (root only, dangerous).

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: validatorsdevelopers

The Big Picture

Like authorize_upgrade but skips version checks. Use only when normal path fails.

Use Cases

  • Emergency fixes that change spec name
  • Recovery from stuck upgrades

From Chain Metadata

Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied later. WARNING: This authorizes an upgrade that will take place without any safety checks, for example that the spec name remains the same and that the version number increases. Not recommended for normal use. Use `authorize_upgrade` instead. This call requires Root origin.

Input Parameters

#NameTypeDescription
0
code_hash
H256 code_hash (H256)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller is root/sudo
  • Valid code hash

Effects

Events Emitted

Storage Modified

Postconditions

  • Upgrade authorized without version checks

Side Effects

  • Bypasses spec name and version validation

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Build authorize_upgrade_without_checks call
const code_hash = 0 as any /* H256 */;

const call = api.tx[stringCamelCase("System")][stringCamelCase("authorize_upgrade_without_checks")](
  code_hash
);

Runtime Info

Pallet Index
0
Call Index
10
First Version
v151
Current Version
v393