-
Notifications
You must be signed in to change notification settings - Fork 689
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
Fix Pools 6->7 migration #2942
Merged
Merged
Fix Pools 6->7 migration #2942
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8f60b09
Fix Pools 7->8 migration
ggwpez f2e76fb
Update substrate/frame/nomination-pools/src/migration.rs
ggwpez 9f668df
Merge branch 'master' into oty-pools-migration
ggwpez ae53acf
Allow dead code in migration
ggwpez f1bb670
Add prdoc
ggwpez af09e8b
Add prdoc
ggwpez 88e542e
Fix prdoc
ggwpez e81ed4d
Fix other prdocs
ggwpez cdfca9a
Prefix structs with V7
ggwpez 077d6b0
Merge remote-tracking branch 'origin/master' into oty-pools-migration
ggwpez ccf9073
Use correct comission
ggwpez 64c7821
Use correct prefix
ggwpez eae0edd
Make stuff work
ggwpez 9042a9c
Merge branch 'master' into oty-pools-migration
bkontur 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
This file contains 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 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Contracts: Stabilize sr25519_verify host function | ||
title: "Contracts: Stabilize sr25519_verify host function" | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
Removed the `#[unstable]` attrribute on `sr25519_verify` host function. | ||
|
||
crates: ["pallet-contracts"] | ||
crates: | ||
- name: "pallet-contracts" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Fix pallet-nomination-pools v6 to v7 migration | ||
|
||
doc: | ||
- audience: Node Dev | ||
description: | | ||
Restores the behaviour of the nomination pools `V6ToV7` migration so that it still works when | ||
the pallet will be upgraded to V8 afterwards. | ||
|
||
crates: | ||
- name: "pallet-nomination-pools" |
This file contains 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
Oops, something went wrong.
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 description doesn't make sense to me, V6ToV7 will work regardless of V8 as it is always migrated before V8 right? Or is it fixing something that mod v8 broke?
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.
No sadly not. It should though - which is what this MR is correcting.
The migration tries to access storage from
crate::pallet::BondedPoolInner
etc, but this could still be unmigrated since the V8 migration could run afterwards.It did work fine in the past, because the pallet storage definitions were not changed to V8 yet.