Fix para-scheduler migration on Rococo (#1921)

Closes https://github.com/paritytech/polkadot-sdk/issues/1916

Changes:
- Trivially wrap the migration into a version migration to enforce
idempotency.
- Opinionated logging nits

@liamaharon maybe we can add a check to the `try-runtime-cli` that
migrations are idempotent? It should be possible to check that the
storage root is identical after executing a second time (and that it
does not panic like it did here 😆).

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
This commit is contained in:
Oliver Tale-Yazdi
2023-10-18 00:19:34 +02:00
committed by GitHub
parent 38c0604b46
commit 58b7927284
3 changed files with 41 additions and 19 deletions
+19
View File
@@ -0,0 +1,19 @@
title: Fix para-scheduler migration
doc:
- audience: Core Dev
description: |
Changing the `MigrateToV1` migration in the `ParachainScheduler` pallet to be truly idempotent. It is achieved by wrapping it in a `VersionedMigration`.
migrations:
db: []
runtime:
- pallet: "ParachainScheduler"
description: Non-critical fixup for `MigrateToV1`.
crates:
- name: "polkadot-runtime-parachains"
semver: patch
host_functions: []