Skip to content

Commit

Permalink
Remove migration to v8 since it's already executed
Browse files Browse the repository at this point in the history
  • Loading branch information
MRamanenkau committed Apr 26, 2024
1 parent 2fc6bc3 commit 6dcd5bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1441,13 +1441,6 @@ impl Get<&'static str> for StakingMigrationV11OldPallet {
}
}

pub struct MigrateStakingPalletToV8;
impl OnRuntimeUpgrade for MigrateStakingPalletToV8 {
fn on_runtime_upgrade() -> Weight {
pallet_staking::migrations::v8::migrate::<Runtime>()
}
}

/// Unchecked extrinsic type as expected by this runtime.
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
Expand Down Expand Up @@ -1477,7 +1470,6 @@ parameter_types! {

/// Runtime migrations
type Migrations = (
MigrateStakingPalletToV8,
pallet_staking::migrations::v9::InjectValidatorsIntoVoterList<Runtime>,
pallet_staking::migrations::v10::MigrateToV10<Runtime>,
pallet_staking::migrations::v11::MigrateToV11<Runtime, VoterList, StakingMigrationV11OldPallet>,
Expand Down
8 changes: 0 additions & 8 deletions runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1446,13 +1446,6 @@ impl Get<&'static str> for StakingMigrationV11OldPallet {
}
}

pub struct MigrateStakingPalletToV8;
impl OnRuntimeUpgrade for MigrateStakingPalletToV8 {
fn on_runtime_upgrade() -> Weight {
pallet_staking::migrations::v8::migrate::<Runtime>()
}
}

// We don't need to run pallet_balances::pallets::MigrateToTrackInactive or
// pallet_balances::pallets::MigrateManyToTrackInactive since XCM related only.
// MigrateToTrackInactive and MigrateManyToTrackInactive simply add CheckingAccount value to
Expand Down Expand Up @@ -1483,7 +1476,6 @@ parameter_types! {

/// Runtime migrations
type Migrations = (
MigrateStakingPalletToV8,
pallet_staking::migrations::v9::InjectValidatorsIntoVoterList<Runtime>,
pallet_staking::migrations::v10::MigrateToV10<Runtime>,
pallet_staking::migrations::v11::MigrateToV11<Runtime, VoterList, StakingMigrationV11OldPallet>,
Expand Down

0 comments on commit 6dcd5bc

Please sign in to comment.