From 55e2ddd91c477518f78222d9456c57cd20dcf051 Mon Sep 17 00:00:00 2001 From: Andronik <write@reusable.software> Date: Wed, 2 Mar 2022 10:14:38 +0100 Subject: [PATCH] CI: add rococo to the runtime check (#5013) * ci: add rococo for runtime changes check * rococo: bump spec_version to 9180 * Update Rococo to 1-day lease (#4761) * changed lease period to 1 day * bumped version * bumped version again * changed 356 to 365 days to mimic one year Co-authored-by: Santi Balaguer <santibalaguer@Santis-MacBook-Pro.local> * rococo: bump spec_version to 9170 for consistency Co-authored-by: Santi Balaguer <santiago.balaguer@gmail.com> Co-authored-by: Santi Balaguer <santibalaguer@Santis-MacBook-Pro.local> --- polkadot/runtime/rococo/src/lib.rs | 6 +++--- polkadot/scripts/gitlab/check_runtime.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index 0db10362698..fe3548aec5d 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -100,7 +100,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("rococo"), impl_name: create_runtime_str!("parity-rococo-v2.0"), authoring_version: 0, - spec_version: 9140, + spec_version: 9170, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] apis: RUNTIME_API_VERSIONS, @@ -682,7 +682,7 @@ impl parachains_initializer::Config for Runtime { impl paras_sudo_wrapper::Config for Runtime {} parameter_types! { - pub const PermanentSlotLeasePeriodLength: u32 = 356; + pub const PermanentSlotLeasePeriodLength: u32 = 365; pub const TemporarySlotLeasePeriodLength: u32 = 3; pub const MaxPermanentSlots: u32 = 25; pub const MaxTemporarySlots: u32 = 20; @@ -941,7 +941,7 @@ impl auctions::Config for Runtime { } parameter_types! { - pub const LeasePeriod: BlockNumber = 7 * DAYS; + pub const LeasePeriod: BlockNumber = 1 * DAYS; } impl slots::Config for Runtime { diff --git a/polkadot/scripts/gitlab/check_runtime.sh b/polkadot/scripts/gitlab/check_runtime.sh index aa9f5813727..9618bbfa1c7 100755 --- a/polkadot/scripts/gitlab/check_runtime.sh +++ b/polkadot/scripts/gitlab/check_runtime.sh @@ -38,6 +38,7 @@ runtimes=( "kusama" "polkadot" "westend" + "rococo" ) common_dirs=( -- GitLab