Enable elastic scaling node feature in local testnets genesis (#3509)

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
Andrei Sandu
2024-02-29 15:32:58 +02:00
committed by GitHub
parent c244a94e4a
commit 7f5d308d29
6 changed files with 27 additions and 58 deletions
+3 -2
View File
@@ -93,6 +93,7 @@ kvdb-rocksdb = { version = "0.19.0", optional = true }
parity-db = { version = "0.4.12", optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1" }
parking_lot = "0.12.1"
bitvec = { version = "1.0.1", optional = true }
# Polkadot
polkadot-core-primitives = { path = "../../core-primitives" }
@@ -184,8 +185,8 @@ full-node = [
]
# Configure the native runtimes to use.
westend-native = ["westend-runtime", "westend-runtime-constants"]
rococo-native = ["rococo-runtime", "rococo-runtime-constants"]
westend-native = ["bitvec", "westend-runtime", "westend-runtime-constants"]
rococo-native = ["bitvec", "rococo-runtime", "rococo-runtime-constants"]
runtime-benchmarks = [
"frame-benchmarking-cli/runtime-benchmarks",
+6 -1
View File
@@ -122,7 +122,9 @@ pub fn wococo_config() -> Result<RococoChainSpec, String> {
fn default_parachains_host_configuration(
) -> polkadot_runtime_parachains::configuration::HostConfiguration<polkadot_primitives::BlockNumber>
{
use polkadot_primitives::{AsyncBackingParams, MAX_CODE_SIZE, MAX_POV_SIZE};
use polkadot_primitives::{
vstaging::node_features::FeatureIndex, AsyncBackingParams, MAX_CODE_SIZE, MAX_POV_SIZE,
};
polkadot_runtime_parachains::configuration::HostConfiguration {
validation_upgrade_cooldown: 2u32,
@@ -155,6 +157,9 @@ fn default_parachains_host_configuration(
max_candidate_depth: 3,
allowed_ancestry_len: 2,
},
node_features: bitvec::vec::BitVec::from_element(
1u8 << (FeatureIndex::ElasticScalingMVP as usize),
),
scheduler_params: SchedulerParams {
lookahead: 2,
group_rotation_frequency: 20,