mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 03:41:02 +00:00
add pallet_im_online::migration to Unreleased migrations (#7387)
* add pallet_im_online::migration to Unreleased migrations refs https://github.com/paritytech/polkadot/pull/7309#issuecomment-1593030554 * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -1532,8 +1532,10 @@ pub mod migrations {
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// Unreleased migrations. Add new ones here:
|
/// Unreleased migrations. Add new ones here:
|
||||||
pub type Unreleased =
|
pub type Unreleased = (
|
||||||
(pallet_society::migrations::MigrateToV2<Runtime, (), past_payouts::PastPayouts>,);
|
pallet_society::migrations::MigrateToV2<Runtime, (), past_payouts::PastPayouts>,
|
||||||
|
pallet_im_online::migration::v1::Migration<Runtime>,
|
||||||
|
);
|
||||||
|
|
||||||
/// Migrations that set `StorageVersion`s we missed to set.
|
/// Migrations that set `StorageVersion`s we missed to set.
|
||||||
pub struct SetStorageVersions;
|
pub struct SetStorageVersions;
|
||||||
|
|||||||
@@ -107,18 +107,12 @@ pub mod latest {
|
|||||||
"There must be exactly one new pending upgrade enqueued"
|
"There must be exactly one new pending upgrade enqueued"
|
||||||
);
|
);
|
||||||
if let Err(err) = last.1.check_consistency() {
|
if let Err(err) = last.1.check_consistency() {
|
||||||
log::error!(
|
log::error!(target: LOG_TARGET, "Last PendingConfig is invalidity {:?}", err,);
|
||||||
target: LOG_TARGET,
|
|
||||||
"Last PendingConfig is invalidity {:?}", err,
|
|
||||||
);
|
|
||||||
|
|
||||||
return Err("Pending upgrade must be sane but was not".into())
|
return Err("Pending upgrade must be sane but was not".into())
|
||||||
}
|
}
|
||||||
if let Err(err) = ActiveConfig::<T>::get().check_consistency() {
|
if let Err(err) = ActiveConfig::<T>::get().check_consistency() {
|
||||||
log::error!(
|
log::error!(target: LOG_TARGET, "ActiveConfig is invalid: {:?}", err,);
|
||||||
target: LOG_TARGET,
|
|
||||||
"ActiveConfig is invalid: {:?}", err,
|
|
||||||
);
|
|
||||||
|
|
||||||
return Err("Active upgrade must be sane but was not".into())
|
return Err("Active upgrade must be sane but was not".into())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1522,7 +1522,7 @@ pub mod migrations {
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// Unreleased migrations. Add new ones here:
|
/// Unreleased migrations. Add new ones here:
|
||||||
pub type Unreleased = ();
|
pub type Unreleased = (pallet_im_online::migration::v1::Migration<Runtime>,);
|
||||||
|
|
||||||
/// Migrations that set `StorageVersion`s we missed to set.
|
/// Migrations that set `StorageVersion`s we missed to set.
|
||||||
pub struct SetStorageVersions;
|
pub struct SetStorageVersions;
|
||||||
|
|||||||
@@ -1623,7 +1623,10 @@ pub mod migrations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Unreleased migrations. Add new ones here:
|
/// Unreleased migrations. Add new ones here:
|
||||||
pub type Unreleased = (pallet_society::migrations::MigrateToV2<Runtime, (), ()>,);
|
pub type Unreleased = (
|
||||||
|
pallet_society::migrations::MigrateToV2<Runtime, (), ()>,
|
||||||
|
pallet_im_online::migration::v1::Migration<Runtime>,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Helpers to configure all migrations.
|
/// Helpers to configure all migrations.
|
||||||
|
|||||||
@@ -1323,7 +1323,7 @@ pub mod migrations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Unreleased migrations. Add new ones here:
|
/// Unreleased migrations. Add new ones here:
|
||||||
pub type Unreleased = ();
|
pub type Unreleased = (pallet_im_online::migration::v1::Migration<Runtime>,);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Helpers to configure all migrations.
|
/// Helpers to configure all migrations.
|
||||||
|
|||||||
Reference in New Issue
Block a user