Skip to content
Snippets Groups Projects
Unverified Commit caff7160 authored by Branislav Kontur's avatar Branislav Kontur Committed by GitHub
Browse files

Update prdoc/pr_7592.prdoc

parent 9eea06ff
Branches
No related merge requests found
Pipeline #515670 waiting for manual action with stages
in 1 hour, 34 minutes, and 21 seconds
......@@ -2,18 +2,10 @@ title: Add `Paras` authorize code_hash for `(force_)set_current_code` feature
doc:
- audience: Runtime Dev
description: |-
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 `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_force_set_current_code(para, new_code)` by anyone.
## 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 code? Is this possible?
crates:
- name: polkadot-runtime-parachains
bump: patch
......
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