Skip to content

Commit ff7fea6

Browse files
ggwpezhitchho
authored andcommitted
Deprecate dmp-queue pallet (paritytech#4475)
`cumulus-pallet-dmp-queue` is not needed anymore since paritytech#1246. The only logic that remains in the pallet is a lazy migration in the [`on_idle`](https://github.com/paritytech/polkadot-sdk/blob/8d62c13b2541920c37fb9d9ca733fcce91e96573/cumulus/pallets/dmp-queue/src/lib.rs#L158) hook. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
1 parent c0f94a2 commit ff7fea6

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

cumulus/pallets/dmp-queue/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
//! from the runtime once `Completed` was emitted.
2222
2323
#![cfg_attr(not(feature = "std"), no_std)]
24+
#![allow(deprecated)] // The pallet itself is deprecated.
2425

2526
use migration::*;
2627
pub use pallet::*;
@@ -38,6 +39,9 @@ pub type MaxDmpMessageLenOf<T> =
3839
<<T as Config>::DmpSink as frame_support::traits::HandleMessage>::MaxMessageLen;
3940

4041
#[frame_support::pallet]
42+
#[deprecated(
43+
note = "`cumulus-pallet-dmp-queue` will be removed after November 2024. It can be removed once its lazy migration completed. See <https://github.com/paritytech/polkadot-sdk/pull/1246>."
44+
)]
4145
pub mod pallet {
4246
use super::*;
4347
use frame_support::{pallet_prelude::*, traits::HandleMessage, weights::WeightMeter};

prdoc/pr_4475.prdoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: "Deprecate dmp-queue pallet"
2+
3+
doc:
4+
- audience: Runtime Dev
5+
description: |
6+
Schedule the DMP queue pallet for deletion. It is not needed anymore sine https://github.com/paritytech/polkadot-sdk/pull/1246.
7+
8+
crates:
9+
- name: cumulus-pallet-dmp-queue
10+
bump: minor

0 commit comments

Comments
 (0)