From 25a4151a8b5661458570a2c0f5cf76e76426bc36 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 20 Apr 2021 17:19:34 -0400 Subject: [PATCH] Prep for Westend to Rococo Header Sync (#915) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump Rococo and Westend RuntimeVersions * Add helper scripts for running Rococo<>Westend header sync * Remove extra space Co-authored-by: Tomasz Drwięga Co-authored-by: Tomasz Drwięga --- bridges/primitives/chain-rococo/src/lib.rs | 7 ++++--- bridges/primitives/chain-westend/src/lib.rs | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bridges/primitives/chain-rococo/src/lib.rs b/bridges/primitives/chain-rococo/src/lib.rs index cc3eb47b1b..b79fdf6cfc 100644 --- a/bridges/primitives/chain-rococo/src/lib.rs +++ b/bridges/primitives/chain-rococo/src/lib.rs @@ -32,14 +32,15 @@ pub type Rococo = PolkadotLike; pub type UncheckedExtrinsic = bp_polkadot_core::UncheckedExtrinsic; +// NOTE: This needs to be kept up to date with the Rococo runtime found in the Polkadot repo. pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: sp_version::create_runtime_str!("rococo"), - impl_name: sp_version::create_runtime_str!("parity-rococo-v1-1"), + impl_name: sp_version::create_runtime_str!("parity-rococo-v1.5"), authoring_version: 0, - spec_version: 30, + spec_version: 231, impl_version: 0, apis: sp_version::create_apis_vec![[]], - transaction_version: 6, + transaction_version: 0, }; /// Rococo Runtime `Call` enum. diff --git a/bridges/primitives/chain-westend/src/lib.rs b/bridges/primitives/chain-westend/src/lib.rs index dbbfabd5dc..db97364ef4 100644 --- a/bridges/primitives/chain-westend/src/lib.rs +++ b/bridges/primitives/chain-westend/src/lib.rs @@ -32,12 +32,12 @@ pub type Westend = PolkadotLike; pub type UncheckedExtrinsic = bp_polkadot_core::UncheckedExtrinsic; -/// Runtime version. +// NOTE: This needs to be kept up to date with the Westend runtime found in the Polkadot repo. pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: sp_version::create_runtime_str!("westend"), impl_name: sp_version::create_runtime_str!("parity-westend"), authoring_version: 2, - spec_version: 50, + spec_version: 51, impl_version: 0, apis: sp_version::create_apis_vec![[]], transaction_version: 5,