Skip to content
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 try-runtime build and add missing migrations #296

Merged
merged 6 commits into from
Oct 19, 2023

Conversation

fgamundi
Copy link
Contributor

try-runtime now fails if there's a mismatch between a pallet's latest vs onchain versions. This flagged PolkadotXcm and XcmpQueue from live dancebox.
Missing migrations has been added

}

fn migrate(&self, _available_weight: Weight) -> Weight {
cumulus_pallet_xcmp_queue::migration::Migration::<T>::on_runtime_upgrade()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we know for certain this puts the v3 on the pallet?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we probably need to set v2 first before doing this on_runtime_upgrade

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, even if onchain is v1, it applies first the migration to v2 and immediately after the migration to v3 https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/pallets/xcmp-queue/src/migration.rs#L36C1-L46C4

@girazoki girazoki marked this pull request as ready for review October 19, 2023 12:25
@tmpolaczyk
Copy link
Contributor

Can you merge master? I just merged a big PR that includes migrations, so there will be conflicts.

@fgamundi
Copy link
Contributor Author

@tmpolaczyk done

@girazoki girazoki merged commit fc80184 into moondance-labs:master Oct 19, 2023
20 checks passed
@fgamundi fgamundi deleted the fg-try-runtime branch October 20, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants