From 8857318c513b3cf343ed2b51805b97789d7ec592 Mon Sep 17 00:00:00 2001 From: Harald Heckmann Date: Thu, 31 Mar 2022 19:51:16 +0200 Subject: [PATCH] Update parachain-staking and add migration (#517) --- Cargo.lock | 4 ++-- node/Cargo.toml | 2 +- runtime/Cargo.toml | 4 ++-- runtime/src/lib.rs | 10 ++++++++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2464924e5..c405c33d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4943,7 +4943,7 @@ dependencies = [ [[package]] name = "pallet-author-mapping" version = "2.0.5" -source = "git+https://github.com/purestake/moonbeam?rev=45257659f04b28dd4927b5dc611fac6f9e8905fd#45257659f04b28dd4927b5dc611fac6f9e8905fd" +source = "git+https://github.com/purestake/moonbeam?rev=30b955354981b6d11808c10d728e1b93fa919f33#30b955354981b6d11808c10d728e1b93fa919f33" dependencies = [ "frame-benchmarking", "frame-support", @@ -5875,7 +5875,7 @@ dependencies = [ [[package]] name = "parachain-staking" version = "3.0.0" -source = "git+https://github.com/zeitgeistpm/moonbeam?branch=parachain-staking-migrations-3#3fbd882f551e629d5a29791b302d80dd4e4b4364" +source = "git+https://github.com/zeitgeistpm/moonbeam?branch=parachain-staking-migrations-3#916f2748e4caa3c384ea9e9de2c471e6abca3ed5" dependencies = [ "frame-benchmarking", "frame-support", diff --git a/node/Cargo.toml b/node/Cargo.toml index debcf6ca0..b9e752939 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -56,7 +56,7 @@ cumulus-relay-chain-local = { branch = "moonbeam-polkadot-v0.9.16", git = "https nimbus-consensus = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/purestake/nimbus", optional = true } nimbus-primitives = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/purestake/nimbus", optional = true } pallet-author-inherent = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/purestake/nimbus", optional = true } -parachain-staking = { rev = "45257659f04b28dd4927b5dc611fac6f9e8905fd", git = "https://github.com/purestake/moonbeam", optional = true } +parachain-staking = { rev = "30b955354981b6d11808c10d728e1b93fa919f33", git = "https://github.com/purestake/moonbeam", optional = true } parity-scale-codec = { optional = true, version = "3.0.0" } sc-chain-spec = { branch = "moonbeam-polkadot-v0.9.16", git = "https://github.com/purestake/substrate", optional = true } sc-network = { branch = "moonbeam-polkadot-v0.9.16", git = "https://github.com/purestake/substrate", optional = true } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 814a97659..aa09c970b 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -58,10 +58,10 @@ parachain-info = { branch = "moonbeam-polkadot-v0.9.16", default-features = fals nimbus-primitives = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/purestake/nimbus", optional = true } pallet-author-inherent = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/purestake/nimbus", optional = true } -pallet-author-mapping = { rev = "45257659f04b28dd4927b5dc611fac6f9e8905fd", default-features = false, git = "https://github.com/purestake/moonbeam", optional = true } +pallet-author-mapping = { rev = "30b955354981b6d11808c10d728e1b93fa919f33", default-features = false, git = "https://github.com/purestake/moonbeam", optional = true } pallet-author-slot-filter = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/purestake/nimbus", optional = true } pallet-crowdloan-rewards = { branch = "moonbeam-polkadot-v0.9.16", default-features = false, git = "https://github.com/PureStake/crowdloan-rewards", optional = true } -parachain-staking = { rev = "45257659f04b28dd4927b5dc611fac6f9e8905fd", default-features = false, git = "https://github.com/purestake/moonbeam", optional = true } +parachain-staking = { rev = "30b955354981b6d11808c10d728e1b93fa919f33", default-features = false, git = "https://github.com/purestake/moonbeam", optional = true } # Polkadot diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index fc5de986c..4713b19b8 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -21,7 +21,9 @@ pub use parachain_params::*; pub use parameters::*; #[cfg(feature = "parachain")] -use parachain_staking::migrations::{PurgeStaleStorage, RemoveExitQueue}; +use parachain_staking::migrations::{ + PurgeStaleStorage, RemoveExitQueue, SplitCandidateStateToDecreasePoV, +}; use alloc::{boxed::Box, vec, vec::Vec}; use frame_support::{ @@ -78,7 +80,11 @@ type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - (PurgeStaleStorage, RemoveExitQueue), + ( + PurgeStaleStorage, + RemoveExitQueue, + SplitCandidateStateToDecreasePoV, + ), >; #[cfg(not(feature = "parachain"))]