Skip to content

Commit

Permalink
testnet genesis: enable approval voting v2 assignments and coalescing (
Browse files Browse the repository at this point in the history
…#3827)

This is a long due chore ...

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: ordian <write@reusable.software>
  • Loading branch information
sandreim and ordian authored Mar 27, 2024
1 parent f394477 commit 66051ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions polkadot/node/service/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -158,14 +159,16 @@ 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,
group_rotation_frequency: 20,
paras_availability_period: 4,
..Default::default()
},
approval_voting_params: ApprovalVotingParams { max_approval_coalesce_count: 5 },
..Default::default()
}
}
Expand Down

0 comments on commit 66051ad

Please sign in to comment.