Skip to content

Commit

Permalink
bump lookahead to 3 for testnet genesis (#7252)
Browse files Browse the repository at this point in the history
This is the right value after
#4880, which corresponds
to an allowedAncestryLen of 2 (which is the default)

WIll fix #7105
  • Loading branch information
alindima authored Jan 23, 2025
1 parent 085da47 commit cfc5b6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion polkadot/runtime/rococo/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn default_parachains_host_configuration(
1u8 << (FeatureIndex::CandidateReceiptV2 as usize),
),
scheduler_params: SchedulerParams {
lookahead: 2,
lookahead: 3,
group_rotation_frequency: 20,
paras_availability_period: 4,
..Default::default()
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/westend/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn default_parachains_host_configuration(
1u8 << (FeatureIndex::CandidateReceiptV2 as usize),
),
scheduler_params: SchedulerParams {
lookahead: 2,
lookahead: 3,
group_rotation_frequency: 20,
paras_availability_period: 4,
..Default::default()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ async fn doesnt_break_parachains_test() -> Result<(), anyhow::Error> {
assert_eq!(
cq,
[
(CoreIndex(0), [para_id, para_id].into_iter().collect()),
(CoreIndex(1), [para_id, para_id].into_iter().collect()),
(CoreIndex(0), std::iter::repeat(para_id).take(3).collect()),
(CoreIndex(1), std::iter::repeat(para_id).take(3).collect()),
]
.into_iter()
.collect()
Expand Down

0 comments on commit cfc5b6f

Please sign in to comment.