-
Notifications
You must be signed in to change notification settings - Fork 140
State trie migrations ah #604
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
State trie migrations ah #604
Conversation
nkpar
commented
Feb 25, 2025
- Does not require a CHANGELOG entry
Eliminated the conditional `state-trie-version-1` feature and all associated code, including configurations, parameterization, and tests. The `state-trie-migration` pallet is now always included without feature gating.
Reorganized and reordered runtime configuration types to enhance readability and consistency. Adjusted type alias placements, added missing types, and restructured constants for better maintainability and alignment across pallets.
This reverts commit cb23f58.
Replaces `EnsureSignedBy<RootMigController, AccountId>` with `EnsureRoot<AccountId>` for `ControlOrigin`. This simplifies migration control logic by ensuring only the root origin has full authority over the pallet.
Updated `ControlOrigin` to support either Root or Fellowship origins. Modified `SignedFilter` to use `EnsureSigned`.
cargo fmt
Bump spec_version for AH Kusama
ggwpez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need clarity on the bot accounts to use for the migration; otherwise looks good
Co-authored-by: Oliver Tale-Yazdi <[email protected]>
…hub-polkadot in migration workflow
|
The migration bot code is in paritytech/polkadot-scripts/blob/master/src/services/state_trie_migration.ts |
bkchr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question regarding the changes in the CI code, otherwise looks good.
| "is_relay": false, | ||
| "blocktime": 12000 | ||
| "blocktime": 12000, | ||
| "runtime_args": "--overwrite-state-version 1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? The on chain version is still 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkchr As I updated state version in this PR - otherwise check will fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The externalities initialize with the state version of the snapshot (0) and then at the end of the block it is 1 and fails to match the state root. Now instead we initialise with 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we building a block because of the possible multi block migrations?
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
|
/merge |
22d1ab8
into
polkadot-fellows:main
|
Enabled Available commands
For more information see the documentation |
Release 1.4.2 for: - #535 (PAH and KAH) - #614 (P Collectives) - #604 (PAH and KAH) --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]>