Skip to content

Commit

Permalink
remove parachains_assigner code (paritytech#6171)
Browse files Browse the repository at this point in the history
Resolves paritytech#5970

Removes the code of the legacy parachains assigner, which was used prior
to coretime. Now that all networks are upgraded to use the coretime
assigner, we can remove it.
  • Loading branch information
alindima authored and mordamax committed Oct 29, 2024
1 parent 81ff004 commit afe70cd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 267 deletions.
67 changes: 0 additions & 67 deletions polkadot/runtime/parachains/src/assigner_parachains.rs

This file was deleted.

This file was deleted.

111 changes: 0 additions & 111 deletions polkadot/runtime/parachains/src/assigner_parachains/tests.rs

This file was deleted.

1 change: 0 additions & 1 deletion polkadot/runtime/parachains/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#![cfg_attr(not(feature = "std"), no_std)]

pub mod assigner_coretime;
pub mod assigner_parachains;
pub mod configuration;
pub mod coretime;
pub mod disputes;
Expand Down
5 changes: 1 addition & 4 deletions polkadot/runtime/parachains/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Mocks for all the traits.
use crate::{
assigner_coretime, assigner_parachains, configuration, coretime, disputes, dmp, hrmp,
assigner_coretime, configuration, coretime, disputes, dmp, hrmp,
inclusion::{self, AggregateMessageOrigin, UmpQueueId},
initializer, on_demand, origin, paras,
paras::ParaKind,
Expand Down Expand Up @@ -76,7 +76,6 @@ frame_support::construct_runtime!(
ParaInherent: paras_inherent,
Scheduler: scheduler,
MockAssigner: mock_assigner,
ParachainsAssigner: assigner_parachains,
OnDemand: on_demand,
CoretimeAssigner: assigner_coretime,
Coretime: coretime,
Expand Down Expand Up @@ -399,8 +398,6 @@ impl pallet_message_queue::Config for Test {
type IdleMaxServiceWeight = ();
}

impl assigner_parachains::Config for Test {}

parameter_types! {
pub const OnDemandTrafficDefaultValue: FixedU128 = FixedU128::from_u32(1);
// Production chains should keep this numbar around twice the
Expand Down
7 changes: 7 additions & 0 deletions prdoc/pr_6171.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: 'remove parachains_assigner'
doc:
- audience: Runtime Dev
description: "Remove the code of the parachains_assigner pallet, since coretime was released on all production networks."
crates:
- name: polkadot-runtime-parachains
bump: major

0 comments on commit afe70cd

Please sign in to comment.