mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 13:21:10 +00:00
Enable elastic scaling node feature in local testnets genesis (#3509)
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user