Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion parachain/runtime/heima/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,17 @@ pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;

/// Migrations to apply on runtime upgrade.
pub type Migrations = (
// One-time SDK storage-version migrations introduced by the polkadot-stable2512 upgrade.
// Without these, on-chain storage versions stay behind the in-code versions (try-runtime
// `--checks=all` fails with "storage version do not match") and the affected pallets read
// data in the wrong format. Remove after this upgrade is enacted on-chain.
pallet_session::migrations::v1::MigrateV0ToV1<
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
cumulus_pallet_xcmp_queue::migration::v6::MigrateV5ToV6<Runtime>,
cumulus_pallet_xcmp_queue::migration::v7::MigrateV6ToV7<Runtime>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
);
Expand Down Expand Up @@ -246,7 +257,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: alloc::borrow::Cow::Borrowed("heima"),
authoring_version: 1,
// same versioning-mechanism as polkadot: use last digit for minor updates
spec_version: 9270,
spec_version: 9271,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down
13 changes: 12 additions & 1 deletion parachain/runtime/paseo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,17 @@ pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;

/// Migrations to apply on runtime upgrade.
pub type Migrations = (
// One-time SDK storage-version migrations introduced by the polkadot-stable2512 upgrade.
// Without these, on-chain storage versions stay behind the in-code versions (try-runtime
// `--checks=all` fails with "storage version do not match") and the affected pallets read
// data in the wrong format. Remove after this upgrade is enacted on-chain.
pallet_session::migrations::v1::MigrateV0ToV1<
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
cumulus_pallet_xcmp_queue::migration::v6::MigrateV5ToV6<Runtime>,
cumulus_pallet_xcmp_queue::migration::v7::MigrateV6ToV7<Runtime>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
);
Expand Down Expand Up @@ -247,7 +258,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: alloc::borrow::Cow::Borrowed("heima"),
authoring_version: 1,
// same versioning-mechanism as polkadot: use last digit for minor updates
spec_version: 9270,
spec_version: 9271,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down