Skip to content

Commit

Permalink
chore: post 1.14 release (#723)
Browse files Browse the repository at this point in the history
* Remove executed runtime migrations
* Remove DMP pallet + migration (makes also `try-runtime` still fail
since pallet version is `2` but storage version after cleanup is `0`)
  • Loading branch information
ntn-x2 authored Sep 12, 2024
1 parent 6847de9 commit d9552b7
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 440 deletions.
20 changes: 0 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ frame-system-benchmarking = { git = "https://github.com/paritytech/pol
# Cumulus (with default disabled)

cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" }
cumulus-pallet-dmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" }
cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" }
cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" }
cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-crates-io-v1.7.0" }
Expand Down
4 changes: 0 additions & 4 deletions runtimes/peregrine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ sp-genesis-builder = { workspace = true }

# Cumulus dependencies
cumulus-pallet-aura-ext = { workspace = true }
cumulus-pallet-dmp-queue = { workspace = true }
cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] }
cumulus-pallet-xcm = { workspace = true }
cumulus-pallet-xcmp-queue = { workspace = true }
Expand Down Expand Up @@ -126,7 +125,6 @@ fast-gov = ["runtime-common/fast-gov"]
runtime-benchmarks = [
"attestation/runtime-benchmarks",
"ctype/runtime-benchmarks",
"cumulus-pallet-dmp-queue/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
"cumulus-pallet-session-benchmarking/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
Expand Down Expand Up @@ -175,7 +173,6 @@ std = [
"attestation/std",
"ctype/std",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-session-benchmarking/std",
"cumulus-pallet-xcm/std",
Expand Down Expand Up @@ -258,7 +255,6 @@ try-runtime = [
"attestation/try-runtime",
"ctype/try-runtime",
"cumulus-pallet-aura-ext/try-runtime",
"cumulus-pallet-dmp-queue/try-runtime",
"cumulus-pallet-parachain-system/try-runtime",
"cumulus-pallet-xcm/try-runtime",
"cumulus-pallet-xcmp-queue/try-runtime",
Expand Down
14 changes: 6 additions & 8 deletions runtimes/peregrine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,7 @@ construct_runtime! {
PolkadotXcm: pallet_xcm = 83,
// Does nothing cool, just provides an origin.
CumulusXcm: cumulus_pallet_xcm exclude_parts { Call } = 84,
// delete after lazy runtime Migration
DmpQueue: cumulus_pallet_dmp_queue = 85,
// DmpQueue: cumulus_pallet_dmp_queue = 85,
// Queue and pass DMP messages on to be executed.
MessageQueue: pallet_message_queue = 86,
}
Expand Down Expand Up @@ -1201,13 +1200,13 @@ pub type Executive = frame_executive::Executive<
Runtime,
// Executes pallet hooks in the order of definition in construct_runtime
AllPalletsWithSystem,
(
runtime_common::migrations::BumpStorageVersion<Runtime>,
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
),
frame_support::migrations::RemovePallet<DmpPalletName, <Runtime as frame_system::Config>::DbWeight>,
>;

parameter_types! {
pub const DmpPalletName: &'static str = "DmpQueue";
}

#[cfg(feature = "runtime-benchmarks")]
mod benches {

Expand Down Expand Up @@ -1258,7 +1257,6 @@ mod benches {
[pallet_assets, Fungibles]
[pallet_message_queue, MessageQueue]
[cumulus_pallet_parachain_system, ParachainSystem]
[cumulus_pallet_dmp_queue, DmpQueue]
[frame_benchmarking::baseline, Baseline::<Runtime>]
);

Expand Down
184 changes: 0 additions & 184 deletions runtimes/peregrine/src/weights/cumulus_pallet_dmp_queue.rs

This file was deleted.

1 change: 0 additions & 1 deletion runtimes/peregrine/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

pub mod attestation;
pub mod ctype;
pub mod cumulus_pallet_dmp_queue;
pub mod cumulus_pallet_parachain_system;
pub mod delegation;
pub mod did;
Expand Down
13 changes: 1 addition & 12 deletions runtimes/peregrine/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use frame_support::{
parameter_types,
traits::{Contains, EnqueueWithOrigin, Everything, Nothing, TransformOrigin},
traits::{Contains, Everything, Nothing, TransformOrigin},
};
use frame_system::EnsureRoot;
use pallet_asset_switch::xcm::{
Expand Down Expand Up @@ -330,14 +330,3 @@ impl pallet_message_queue::Config for Runtime {
type MaxStale = MaxStale;
type ServiceWeight = ServiceWeight;
}

// Remove me in 1.15.0
parameter_types! {
pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
}

impl cumulus_pallet_dmp_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type DmpSink = EnqueueWithOrigin<MessageQueue, RelayOrigin>;
type WeightInfo = crate::weights::cumulus_pallet_dmp_queue::WeightInfo<Runtime>;
}
4 changes: 0 additions & 4 deletions runtimes/spiritnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ pallet-vesting = { workspace = true }

# Cumulus dependencies
cumulus-pallet-aura-ext = { workspace = true }
cumulus-pallet-dmp-queue = { workspace = true }
cumulus-pallet-parachain-system = { workspace = true, features = ["parameterized-consensus-hook"] }
cumulus-pallet-xcm = { workspace = true }
cumulus-pallet-xcmp-queue = { workspace = true }
Expand Down Expand Up @@ -125,7 +124,6 @@ fast-gov = ["runtime-common/fast-gov"]
runtime-benchmarks = [
"attestation/runtime-benchmarks",
"ctype/runtime-benchmarks",
"cumulus-pallet-dmp-queue/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
"cumulus-pallet-session-benchmarking/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
Expand Down Expand Up @@ -175,7 +173,6 @@ std = [
"attestation/std",
"ctype/std",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-session-benchmarking/std",
"cumulus-pallet-xcm/std",
Expand Down Expand Up @@ -257,7 +254,6 @@ try-runtime = [
"attestation/try-runtime",
"ctype/try-runtime",
"cumulus-pallet-aura-ext/try-runtime",
"cumulus-pallet-dmp-queue/try-runtime",
"cumulus-pallet-parachain-system/try-runtime",
"cumulus-pallet-xcm/try-runtime",
"cumulus-pallet-xcmp-queue/try-runtime",
Expand Down
Loading

0 comments on commit d9552b7

Please sign in to comment.