Add Authorize Upgrade Pattern to Frame System (#2682)
Adds the `authorize_upgrade` -> `enact_authorized_upgrade` pattern to `frame-system`. This will be useful for upgrading bridged chains that are under the governance of Polkadot without passing entire runtime Wasm blobs over a bridge. Notes: - Changed `enact_authorized_upgrade` to `apply_authorized_upgrade`. Personal opinion, "apply" more accurately expresses what it's doing. Can change back if outvoted. - Remove `check_version` in favor of two extrinsics, so as to make _checked_ the default. - Left calls in `parachain-system` and marked as deprecated to prevent breaking the API. They just call into the `frame-system` functions. - Updated `frame-system` benchmarks to v2 syntax. --------- Co-authored-by: command-bot <>
parent
b51904da
Branches
Pipeline
#427966
failed
with stages
in
40 minutes and 55 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- cumulus/pallets/parachain-system/src/lib.rs 20 additions, 51 deletionscumulus/pallets/parachain-system/src/lib.rs
- cumulus/pallets/parachain-system/src/tests.rs 3 additions, 2 deletionscumulus/pallets/parachain-system/src/tests.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/frame_system.rs 27 additions, 0 deletions...times/assets/asset-hub-rococo/src/weights/frame_system.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/frame_system.rs 27 additions, 0 deletions...imes/assets/asset-hub-westend/src/weights/frame_system.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/frame_system.rs 27 additions, 0 deletions...bridge-hubs/bridge-hub-rococo/src/weights/frame_system.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/frame_system.rs 27 additions, 0 deletions...ridge-hubs/bridge-hub-westend/src/weights/frame_system.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/weights/frame_system.rs 27 additions, 0 deletions...llectives/collectives-westend/src/weights/frame_system.rs
- cumulus/parachains/runtimes/glutton/glutton-westend/src/weights/frame_system.rs 27 additions, 0 deletions...times/glutton/glutton-westend/src/weights/frame_system.rs
- polkadot/runtime/rococo/src/weights/frame_system.rs 27 additions, 0 deletionspolkadot/runtime/rococo/src/weights/frame_system.rs
- polkadot/runtime/westend/src/weights/frame_system.rs 27 additions, 0 deletionspolkadot/runtime/westend/src/weights/frame_system.rs
- prdoc/pr_2682.prdoc 21 additions, 0 deletionsprdoc/pr_2682.prdoc
- substrate/frame/support/test/tests/pallet_outer_enums_explicit.rs 2 additions, 0 deletions...e/frame/support/test/tests/pallet_outer_enums_explicit.rs
- substrate/frame/support/test/tests/pallet_outer_enums_implicit.rs 2 additions, 0 deletions...e/frame/support/test/tests/pallet_outer_enums_implicit.rs
- substrate/frame/system/benchmarking/src/lib.rs 110 additions, 44 deletionssubstrate/frame/system/benchmarking/src/lib.rs
- substrate/frame/system/src/lib.rs 180 additions, 12 deletionssubstrate/frame/system/src/lib.rs
- substrate/frame/system/src/tests.rs 40 additions, 0 deletionssubstrate/frame/system/src/tests.rs
- substrate/frame/system/src/weights.rs 56 additions, 0 deletionssubstrate/frame/system/src/weights.rs
Please register or sign in to comment