Skip to content

apply_authorized_force_set_current_code does not need to consume the whole block #9202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 15, 2025

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jul 14, 2025

There is no need that this dispatchable consumes the full block as this is just writing the given value to storage. On a chain this is done, because the runtime changes and thus, a lot of stuff potentially changes. In the case of the relay chain only on parachain changes and not the relay chain runtime itself.

…e whole block

There is no need that this dispatchable consumes the full block as this is just writing the given value to storage. On a chain this is done, because the runtime changes and thus, a lot of stuff potentially changes. In the case of the relay chain only on parachain changes and not the relay chain runtime itself.
@bkchr bkchr requested a review from bkontur July 14, 2025 20:32
@bkchr bkchr added the T8-polkadot This PR/Issue is related to/affects the Polkadot network. label Jul 14, 2025
@bkchr
Copy link
Member Author

bkchr commented Jul 14, 2025

/cmd prdoc --audience runtime_user --bump patch

@bkchr bkchr requested a review from acatangiu July 15, 2025 09:21
@bkontur bkontur added A4-backport-stable2503 Pull request must be backported to the stable2503 release branch A4-backport-stable2506 Pull request must be backported to the stable2506 release branch A4-backport-unstable2507 Pull request must be backported to the unstable2507 release branch labels Jul 15, 2025
@bkchr bkchr enabled auto-merge July 15, 2025 09:21
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/16289284736
Failed job name: build-rustdoc

@bkchr bkchr added this pull request to the merge queue Jul 15, 2025
Merged via the queue into master with commit 607a1b2 Jul 15, 2025
288 of 297 checks passed
@bkchr bkchr deleted the bkchr-force-set-current-code branch July 15, 2025 12:20
@paritytech-release-backport-bot

Created backport PR for stable2503:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-9202-to-stable2503
git worktree add --checkout .worktree/backport-9202-to-stable2503 backport-9202-to-stable2503
cd .worktree/backport-9202-to-stable2503
git reset --hard HEAD^
git cherry-pick -x 607a1b24b7902a657426ce2412e316a57b61894b
git push --force-with-lease

paritytech-release-backport-bot bot pushed a commit that referenced this pull request Jul 15, 2025
…e whole block (#9202)

There is no need that this dispatchable consumes the full block as this
is just writing the given value to storage. On a chain this is done,
because the runtime changes and thus, a lot of stuff potentially
changes. In the case of the relay chain only on parachain changes and
not the relay chain runtime itself.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
(cherry picked from commit 607a1b2)
@paritytech-release-backport-bot

Successfully created backport PR for stable2506:

bkontur added a commit that referenced this pull request Jul 16, 2025
Backport #9202 into `stable2506` from bkchr.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
@bkontur bkontur added A4-backport-unstable2507 Pull request must be backported to the unstable2507 release branch and removed A4-backport-unstable2507 Pull request must be backported to the unstable2507 release branch labels Jul 17, 2025
@paritytech-release-backport-bot

Created backport PR for stable:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-9202-to-stable
git worktree add --checkout .worktree/backport-9202-to-stable backport-9202-to-stable
cd .worktree/backport-9202-to-stable
git reset --hard HEAD^
git cherry-pick -x 607a1b24b7902a657426ce2412e316a57b61894b
git push --force-with-lease

@paritytech-release-backport-bot

Backport failed for unstable: couldn't find remote ref unstable.
Please ensure that this Github repo has a branch named unstable.

@paritytech-release-backport-bot

Created backport PR for stable2503:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-9202-to-stable2503
git worktree add --checkout .worktree/backport-9202-to-stable2503 backport-9202-to-stable2503
cd .worktree/backport-9202-to-stable2503
git reset --hard HEAD^
git cherry-pick -x 607a1b24b7902a657426ce2412e316a57b61894b
git push --force-with-lease

@paritytech-release-backport-bot

Backport failed for stable2506, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin stable2506
git worktree add -d .worktree/backport-9202-to-stable2506 origin/stable2506
cd .worktree/backport-9202-to-stable2506
git switch --create backport-9202-to-stable2506
git cherry-pick -x 607a1b24b7902a657426ce2412e316a57b61894b

@paritytech-release-backport-bot

Successfully created backport PR for unstable2507:

paritytech-release-backport-bot bot pushed a commit that referenced this pull request Jul 17, 2025
…e whole block (#9202)

There is no need that this dispatchable consumes the full block as this
is just writing the given value to storage. On a chain this is done,
because the runtime changes and thus, a lot of stuff potentially
changes. In the case of the relay chain only on parachain changes and
not the relay chain runtime itself.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
(cherry picked from commit 607a1b2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A4-backport-stable2503 Pull request must be backported to the stable2503 release branch A4-backport-stable2506 Pull request must be backported to the stable2506 release branch A4-backport-unstable2507 Pull request must be backported to the unstable2507 release branch T8-polkadot This PR/Issue is related to/affects the Polkadot network.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants