From 34fa1387e8c5773b0c86948ed92543377064723c Mon Sep 17 00:00:00 2001 From: alindima Date: Mon, 28 Aug 2023 11:53:13 +0300 Subject: [PATCH] more small fixes --- polkadot/node/core/backing/src/tests/mod.rs | 4 ++-- polkadot/node/core/runtime-api/src/tests.rs | 2 +- polkadot/runtime/parachains/src/configuration.rs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/polkadot/node/core/backing/src/tests/mod.rs b/polkadot/node/core/backing/src/tests/mod.rs index 4da2752e9905..06baebc98e67 100644 --- a/polkadot/node/core/backing/src/tests/mod.rs +++ b/polkadot/node/core/backing/src/tests/mod.rs @@ -34,7 +34,7 @@ use polkadot_node_subsystem::{ use polkadot_node_subsystem_test_helpers as test_helpers; use polkadot_primitives::{ CandidateDescriptor, GroupRotationInfo, HeadData, PersistedValidationData, PvfExecTimeoutKind, - ScheduledCore, SessionIndex, + ScheduledCore, SessionIndex, LEGACY_MIN_BACKING_VOTES, }; use sp_application_crypto::AppCrypto; use sp_keyring::Sr25519Keyring; @@ -151,7 +151,7 @@ impl Default for TestState { validation_data, signing_context, relay_parent, - minimum_backing_votes: 2, + minimum_backing_votes: LEGACY_MIN_BACKING_VOTES, } } } diff --git a/polkadot/node/core/runtime-api/src/tests.rs b/polkadot/node/core/runtime-api/src/tests.rs index f448fa942198..bb7c29689611 100644 --- a/polkadot/node/core/runtime-api/src/tests.rs +++ b/polkadot/node/core/runtime-api/src/tests.rs @@ -265,7 +265,7 @@ impl RuntimeApiSubsystemClient for MockSubsystemClient { todo!("Not required for tests") } - async fn minimum_backing_votes(&self, _: Hash) -> Result { + async fn minimum_backing_votes(&self, _: Hash, _: SessionIndex) -> Result { todo!("Not required for tests") } } diff --git a/polkadot/runtime/parachains/src/configuration.rs b/polkadot/runtime/parachains/src/configuration.rs index e3210b47b3d3..084bb29e3407 100644 --- a/polkadot/runtime/parachains/src/configuration.rs +++ b/polkadot/runtime/parachains/src/configuration.rs @@ -24,8 +24,8 @@ use frame_system::pallet_prelude::*; use parity_scale_codec::{Decode, Encode}; use polkadot_parachain::primitives::{MAX_HORIZONTAL_MESSAGE_NUM, MAX_UPWARD_MESSAGE_NUM}; use primitives::{ - vstaging::AsyncBackingParams, Balance, ExecutorParams, SessionIndex, MAX_CODE_SIZE, - MAX_HEAD_DATA_SIZE, MAX_POV_SIZE, ON_DEMAND_DEFAULT_QUEUE_MAX_SIZE, + vstaging::AsyncBackingParams, Balance, ExecutorParams, SessionIndex, LEGACY_MIN_BACKING_VOTES, + MAX_CODE_SIZE, MAX_HEAD_DATA_SIZE, MAX_POV_SIZE, ON_DEMAND_DEFAULT_QUEUE_MAX_SIZE, }; use sp_runtime::{traits::Zero, Perbill}; use sp_std::prelude::*; @@ -295,7 +295,7 @@ impl> Default for HostConfiguration