mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
Remove Stale Upgrades (#1780)
* Remove stale upgrades * add back origin migration * remove unused
This commit is contained in:
@@ -25,7 +25,7 @@ use runtime_common::{
|
|||||||
impls::{CurrencyToVoteHandler, ToAuthor},
|
impls::{CurrencyToVoteHandler, ToAuthor},
|
||||||
NegativeImbalance, BlockHashCount, MaximumBlockWeight, AvailableBlockRatio,
|
NegativeImbalance, BlockHashCount, MaximumBlockWeight, AvailableBlockRatio,
|
||||||
MaximumBlockLength, BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight,
|
MaximumBlockLength, BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight,
|
||||||
MaximumExtrinsicWeight, purchase, ParachainSessionKeyPlaceholder,
|
MaximumExtrinsicWeight, ParachainSessionKeyPlaceholder,
|
||||||
};
|
};
|
||||||
|
|
||||||
use sp_std::prelude::*;
|
use sp_std::prelude::*;
|
||||||
@@ -902,8 +902,6 @@ impl pallet_proxy::Trait for Runtime {
|
|||||||
pub struct CustomOnRuntimeUpgrade;
|
pub struct CustomOnRuntimeUpgrade;
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
||||||
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||||
purchase::remove_pallet::<Runtime>();
|
|
||||||
|
|
||||||
// Update scheduler origin usage
|
// Update scheduler origin usage
|
||||||
#[derive(Encode, Decode)]
|
#[derive(Encode, Decode)]
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ use primitives::v1::{
|
|||||||
CommittedCandidateReceipt, PersistedValidationData, GroupRotationInfo, ValidationCode,
|
CommittedCandidateReceipt, PersistedValidationData, GroupRotationInfo, ValidationCode,
|
||||||
};
|
};
|
||||||
use runtime_common::{
|
use runtime_common::{
|
||||||
purchase, SlowAdjustingFeeUpdate,
|
SlowAdjustingFeeUpdate,
|
||||||
impls::{CurrencyToVoteHandler, ToAuthor},
|
impls::{CurrencyToVoteHandler, ToAuthor},
|
||||||
BlockHashCount, MaximumBlockWeight, AvailableBlockRatio, MaximumBlockLength,
|
BlockHashCount, MaximumBlockWeight, AvailableBlockRatio, MaximumBlockLength,
|
||||||
BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, MaximumExtrinsicWeight,
|
BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, MaximumExtrinsicWeight,
|
||||||
@@ -741,7 +741,7 @@ pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
|||||||
pub struct CustomOnRuntimeUpgrade;
|
pub struct CustomOnRuntimeUpgrade;
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
||||||
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||||
purchase::remove_pallet::<Runtime>()
|
0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user