Skip to content

Commit

Permalink
Removed migrations from release-11 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Aug 2, 2023
1 parent b7e984c commit 016bf76
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 335 deletions.
10 changes: 1 addition & 9 deletions bin/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use frame_system::{EnsureRoot, EnsureSignedBy};
#[cfg(feature = "try-runtime")]
use frame_try_runtime::UpgradeCheckSelect;
pub use pallet_balances::Call as BalancesCall;
use pallet_committee_management::{PrefixMigration, SessionAndEraManager};
use pallet_committee_management::SessionAndEraManager;
pub use pallet_timestamp::Call as TimestampCall;
use pallet_transaction_payment::{CurrencyAdapter, Multiplier, TargetedFeeAdjustment};
pub use primitives::Balance;
Expand Down Expand Up @@ -409,7 +409,6 @@ parameter_types! {
pub const MaxPointsToBalance: u8 = 10;
}

use pallet_elections::{CommitteeSizeMigration, MigrateToV4};
use sp_runtime::traits::Convert;

pub struct BalanceToU256;
Expand Down Expand Up @@ -848,20 +847,13 @@ pub type UncheckedExtrinsic =
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;

pub type Migrations = (
PrefixMigration<Runtime>,
MigrateToV4<Runtime>,
CommitteeSizeMigration<Runtime>,
);

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
Block,
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
Migrations,
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
2 changes: 0 additions & 2 deletions pallets/committee-management/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ extern crate core;

mod impls;
mod manager;
mod migration;
mod traits;

use codec::{Decode, Encode};
use frame_support::{pallet_prelude::Get, traits::StorageVersion};
pub use manager::SessionAndEraManager;
pub use migration::PrefixMigration;
pub use pallet::*;
use primitives::{BanConfig as BanConfigStruct, BanInfo, SessionValidators, LENIENT_THRESHOLD};
use scale_info::TypeInfo;
Expand Down
158 changes: 0 additions & 158 deletions pallets/committee-management/src/migration.rs

This file was deleted.

3 changes: 0 additions & 3 deletions pallets/elections/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#![cfg_attr(not(feature = "std"), no_std)]

mod impls;
mod migration;
#[cfg(test)]
mod mock;
#[cfg(test)]
Expand All @@ -24,7 +23,6 @@ mod traits;

use codec::{Decode, Encode};
use frame_support::traits::StorageVersion;
pub use migration::{v4::Migration as MigrateToV4, v5::Migration as CommitteeSizeMigration};
pub use pallet::*;
pub use primitives::EraValidators;
use scale_info::TypeInfo;
Expand All @@ -36,7 +34,6 @@ use sp_std::{
pub type TotalReward = u32;

const STORAGE_VERSION: StorageVersion = StorageVersion::new(5);
const LOG_TARGET: &str = "pallet-elections";

#[derive(Decode, Encode, TypeInfo)]
pub struct ValidatorTotalRewards<T>(pub BTreeMap<T, TotalReward>);
Expand Down
162 changes: 0 additions & 162 deletions pallets/elections/src/migration.rs

This file was deleted.

Loading

0 comments on commit 016bf76

Please sign in to comment.