Skip to content
Snippets Groups Projects
Commit 8b1a4832 authored by cmd[bot]'s avatar cmd[bot]
Browse files

Update from bkontur running command 'prdoc --audience runtime_dev --bump patch --force'

parent 1eb117eb
Branches
No related merge requests found
Pipeline #517217 waiting for manual action with stages
in 1 minute and 29 seconds
......@@ -2,13 +2,25 @@ title: Add `Paras` authorize code_hash for `(force_)set_current_code` feature
doc:
- audience: Runtime Dev
description: |-
This feature can be useful when we want to trigger `Paras::force_set_current_code(para, code)` from a different chain than the one where the `Paras` pallet is deployed.
Closes: https://github.com/paritytech/polkadot-sdk/issues/7574
Relates to: https://github.com/paritytech/polkadot-sdk/issues/7591
This feature can be useful when we want to trigger for example `Paras::force_set_current_code(para, code)` from a different chain than the one where the `Paras` pallet is deployed.
The main reason is to avoid transferring the entire `new_code` wasm blob between chains.
Instead, we authorize `new_code_hash` with `root`, which can later be applied by `Paras::apply_authorized_code(para, new_code)` by anyone.
Instead, we authorize `code_hash` with `root`, which can later be applied by `Paras::apply_authorized_code(para, authorization)` by anyone.
## TODO
- [x] cover also `add_trusted_validation_code` or `force_schedule_code_upgrade` - see comment bellow: https://github.com/paritytech/polkadot-sdk/pull/7592#issuecomment-2678092104
## Open questions
- [ ] ~Do we need something like `poke_authorized_code_hash`? E.g. in case that we authorize code hash, but nobody would apply it and the parachain starts working with old/other_new code? Is this possible?~
- [ ] do we need something similar for `frame_system` pallet and `set_code` / `set_code_without_checks`?
crates:
- name: polkadot-runtime-parachains
bump: major
bump: patch
- name: rococo-runtime
bump: patch
- name: westend-runtime
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment