From 06dae877edcfbbb59c0019fdae4df6f196fa0aee Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Date: Tue, 3 Jan 2023 22:08:27 +0100 Subject: [PATCH] Deploy scheduler agenda cleanup migration (#6465) * Add migration Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --- polkadot/runtime/kusama/src/lib.rs | 4 ++++ polkadot/runtime/polkadot/src/lib.rs | 4 ++++ polkadot/runtime/rococo/src/lib.rs | 4 ++++ polkadot/runtime/westend/src/lib.rs | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index d0e92134fb6..dce781b533f 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -1480,6 +1480,9 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive<Runtime, CheckAccount>, crowdloan::migration::MigrateToTrackInactive<Runtime>, @@ -1488,6 +1491,7 @@ pub type Migrations = ( Runtime, governance::FellowshipReferendaInstance, >, + pallet_scheduler::migration::v4::CleanupAgendas<Runtime>, ); /// Unchecked extrinsic type as expected by this runtime. diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 8c4d85afb67..45393188043 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -1597,9 +1597,13 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive<Runtime, xcm_config::CheckAccount>, crowdloan::migration::MigrateToTrackInactive<Runtime>, + pallet_scheduler::migration::v4::CleanupAgendas<Runtime>, ); /// Unchecked extrinsic type as expected by this runtime. diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index bcf0a03c945..91a095cf23f 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -1477,9 +1477,13 @@ pub type SignedExtra = ( pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>; +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive<Runtime, xcm_config::CheckAccount>, crowdloan::migration::MigrateToTrackInactive<Runtime>, + pallet_scheduler::migration::v4::CleanupAgendas<Runtime>, ); /// Executive: handles dispatch to the various modules. diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 7118ad1e780..f1d99ebb8dc 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -1211,9 +1211,13 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive<Runtime, xcm_config::CheckAccount>, crowdloan::migration::MigrateToTrackInactive<Runtime>, + pallet_scheduler::migration::v4::CleanupAgendas<Runtime>, ); /// Unchecked extrinsic type as expected by this runtime. -- GitLab