From 142a0aec2f25b1302ee793c6c3d2770e3a8a939f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <123550+andresilva@users.noreply.github.com> Date: Wed, 21 Apr 2021 13:00:14 +0100 Subject: [PATCH] runtime: prepare Westend runtime for BEEFY (#2914) * runtime: bump westend spec_version and add beefy keys migration * bump beefy * runtime: revert westend spec_version change --- polkadot/Cargo.lock | 10 +++++----- polkadot/runtime/westend/src/lib.rs | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index c302841dd26..6e90fc301b6 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -452,7 +452,7 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "beefy-gadget" version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#7fa0c1c084f88b56c5b4515e8ff94d25330d2e97" +source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#846e0ef3b929d8922ddadaaea8e664754fada39a" dependencies = [ "beefy-primitives", "futures 0.3.14", @@ -479,7 +479,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#7fa0c1c084f88b56c5b4515e8ff94d25330d2e97" +source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#846e0ef3b929d8922ddadaaea8e664754fada39a" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -500,7 +500,7 @@ dependencies = [ [[package]] name = "beefy-primitives" version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#7fa0c1c084f88b56c5b4515e8ff94d25330d2e97" +source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#846e0ef3b929d8922ddadaaea8e664754fada39a" dependencies = [ "parity-scale-codec", "sp-api", @@ -4458,7 +4458,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#7fa0c1c084f88b56c5b4515e8ff94d25330d2e97" +source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#846e0ef3b929d8922ddadaaea8e664754fada39a" dependencies = [ "beefy-primitives", "frame-support", @@ -10550,7 +10550,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" dependencies = [ "cfg-if 0.1.10", - "rand 0.7.3", + "rand 0.3.23", "static_assertions", ] diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index d83dac38032..32af630a112 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -91,6 +91,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("westend"), impl_name: create_runtime_str!("parity-westend"), authoring_version: 2, + // NOTE: see https://github.com/paritytech/polkadot/wiki/Westend spec_version: 51, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] @@ -840,7 +841,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext<Runtime>, Runtime, AllPallets, - (), + UpgradeSessionKeys, >; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>; -- GitLab