This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
State trie migration rococo runtime changes. #6127
Merged
paritytech-processbot
merged 15 commits into
paritytech:master
from
cheme:migrate_rococo
Nov 11, 2022
Merged
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8dc9d0c
add state-trie-migration (warn key need to be changed)
cheme 5c2efca
Merge branch 'master' into rococo-mig
cheme ca325d2
Merge branch 'master' into rococo-mig
cheme 04bc8ea
rococo root
cheme 9e3b668
Merge branch 'rococo-mig' into migrate_rococo
cheme 71e2c12
restore master benchs (weights from substrate are used).
cheme 3532ccd
use ord_parameter macro.
cheme 627f2ce
do not upgrade runtime version yet
cheme 5ec823a
apply review changes
cheme f4a2193
Merge branch 'master' into migrate_rococo
cheme 1855814
Merge remote-tracking branch 'origin/master' into migrate_rococo
5df6c5c
to test ci
cheme a7f7eff
Revert "to test ci"
cheme 0747761
test ci
cheme aba9881
Revert "test ci"
cheme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -115,7 +115,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { | |||||||||||||||||||
| #[cfg(feature = "disable-runtime-api")] | ||||||||||||||||||||
| apis: sp_version::create_apis_vec![[]], | ||||||||||||||||||||
| transaction_version: 13, | ||||||||||||||||||||
| state_version: 0, | ||||||||||||||||||||
| state_version: 1, | ||||||||||||||||||||
| }; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| /// The BABE epoch configuration at genesis. | ||||||||||||||||||||
|
|
@@ -1375,6 +1375,9 @@ construct_runtime! { | |||||||||||||||||||
| // Gilts pallet. | ||||||||||||||||||||
| Gilt: pallet_gilt::{Pallet, Call, Storage, Event<T>, Config} = 38, | ||||||||||||||||||||
|
|
||||||||||||||||||||
| // State trie migration pallet, only temporary. | ||||||||||||||||||||
| StateTrieMigration: pallet_state_trie_migration = 41, | ||||||||||||||||||||
|
||||||||||||||||||||
| StateTrieMigration: pallet_state_trie_migration = 41, | |
| StateTrieMigration: pallet_state_trie_migration = 254, |
And then move it down.
Outdated
Member
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.
Suggested change
| // An origin that can control the whole pallet: should be Root, or a part of your council. |
Outdated
Member
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.
Suggested change
| #[test] | |
| fn ensure_key_ss58() { | |
| use frame_support::traits::SortedMembers; | |
| use sp_core::crypto::Ss58Codec; | |
| let acc = | |
| AccountId::from_ss58check("5DwBmEFPXRESyEam5SsQF1zbWSCn2kCjyLW51hJHXe9vW4xs").unwrap(); | |
| //panic!("{:x?}", acc); | |
| assert_eq!(acc, MigController::sorted_members()[0]); | |
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This index was chosen a bit randomly, please tell me if there is a more suitable one (the crate will not be in the runtime forever).