Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add pallet_im_online::migration to Unreleased migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes committed Jun 16, 2023
1 parent c924329 commit 5e4ff35
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ pub mod migrations {
);

/// 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.
pub struct SetStorageVersions;
Expand Down
10 changes: 2 additions & 8 deletions runtime/parachains/src/configuration/migration_ump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,12 @@ pub mod latest {
"There must be exactly one new pending upgrade enqueued"
);
if let Err(err) = last.1.check_consistency() {
log::error!(
target: LOG_TARGET,
"Last PendingConfig is invalidity {:?}", err,
);
log::error!(target: LOG_TARGET, "Last PendingConfig is invalidity {:?}", err,);

return Err("Pending upgrade must be sane but was not".into())
}
if let Err(err) = ActiveConfig::<T>::get().check_consistency() {
log::error!(
target: LOG_TARGET,
"ActiveConfig is invalid: {:?}", err,
);
log::error!(target: LOG_TARGET, "ActiveConfig is invalid: {:?}", err,);

return Err("Active upgrade must be sane but was not".into())
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ pub mod migrations {
);

/// 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.
pub struct SetStorageVersions;
Expand Down
2 changes: 1 addition & 1 deletion runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ pub mod migrations {
}

/// Unreleased migrations. Add new ones here:
pub type Unreleased = ();
pub type Unreleased = (pallet_im_online::migration::v1::Migration<Runtime>,);
}

/// Helpers to configure all migrations.
Expand Down
2 changes: 1 addition & 1 deletion runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ pub mod migrations {
}

/// Unreleased migrations. Add new ones here:
pub type Unreleased = ();
pub type Unreleased = (pallet_im_online::migration::v1::Migration<Runtime>,);
}

/// Helpers to configure all migrations.
Expand Down

0 comments on commit 5e4ff35

Please sign in to comment.