testnet genesis: enable approval voting v2 assignments and coalescing (#3827)

This is a long due chore ...

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: ordian <write@reusable.software>
This commit is contained in:
Andrei Sandu
2024-03-27 06:16:03 +02:00
committed by GitHub
parent f394477988
commit 66051adb61
+5 -2
View File
@@ -123,7 +123,8 @@ fn default_parachains_host_configuration(
) -> polkadot_runtime_parachains::configuration::HostConfiguration<polkadot_primitives::BlockNumber>
{
use polkadot_primitives::{
vstaging::node_features::FeatureIndex, AsyncBackingParams, MAX_CODE_SIZE, MAX_POV_SIZE,
vstaging::{node_features::FeatureIndex, ApprovalVotingParams},
AsyncBackingParams, MAX_CODE_SIZE, MAX_POV_SIZE,
};
polkadot_runtime_parachains::configuration::HostConfiguration {
@@ -158,7 +159,8 @@ fn default_parachains_host_configuration(
allowed_ancestry_len: 2,
},
node_features: bitvec::vec::BitVec::from_element(
1u8 << (FeatureIndex::ElasticScalingMVP as usize),
1u8 << (FeatureIndex::ElasticScalingMVP as usize) |
1u8 << (FeatureIndex::EnableAssignmentsV2 as usize),
),
scheduler_params: SchedulerParams {
lookahead: 2,
@@ -166,6 +168,7 @@ fn default_parachains_host_configuration(
paras_availability_period: 4,
..Default::default()
},
approval_voting_params: ApprovalVotingParams { max_approval_coalesce_count: 5 },
..Default::default()
}
}