Skip to content

Commit 8054586

Browse files
committed
scheduling_lookahead is now lookahead and is set to 3 not 2 on Polkadot
1 parent 52da52b commit 8054586

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

develop/parachains/maintenance/asynchronous-backing.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ The relay chain needs to have async backing enabled so double-check that the rel
2424
"max_candidate_depth": 3,
2525
"allowed_ancestry_len": 2
2626
},
27-
"scheduling_lookahead": 2
2827
```
29-
This can be found in the relay chain's runtime. You can see the Polkadot [`async_backing_params`](https://github.com/polkadot-fellows/runtimes/blob/d49a9f33d0ea85ce51c26c84a70b61624ec06901/relay/polkadot/src/genesis_config_presets.rs#L131-L134){target=\_blank} as an example. `scheduling_lookahead` can also be set using the [`set_scheduling_lookahead`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_parachains/configuration/pallet/dispatchables/fn.set_scheduling_lookahead.html){target=\_blank} dispatchable.
28+
This can be found in the relay chain's runtime. You can see the Polkadot [`async_backing_params`](https://github.com/polkadot-fellows/runtimes/blob/d49a9f33d0ea85ce51c26c84a70b61624ec06901/relay/polkadot/src/genesis_config_presets.rs#L131-L134){target=\_blank} as an example. You also want to make sure that the `lookahead` in [`schedulerParams`](https://paritytech.github.io/polkadot-sdk/master/cumulus_primitives_core/relay_chain/struct.SchedulerParams.html){target=\_blank} is set to `3`. This can be found by found by querying the [`scheduler_params`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_parachains/configuration/struct.HostConfiguration.html#structfield.scheduler_params){target=\_blank} using the [`configuration.activeConfig()`](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc-polkadot.helixstreet.io#/chainstate) query in PolkadotJS.
3029

3130
!!! warning
32-
`scheduling_lookahead` must be set to 2, otherwise parachain block times will degrade to worse than with sync backing!
31+
`lookahead` must be set to 3, otherwise parachain block times will degrade to worse than with sync backing!
3332

3433
## Phase 1 - Update Parachain Runtime
3534

llms.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,12 +5411,11 @@ The relay chain needs to have async backing enabled so double-check that the rel
54115411
"max_candidate_depth": 3,
54125412
"allowed_ancestry_len": 2
54135413
},
5414-
"scheduling_lookahead": 2
54155414
```
5416-
This can be found in the relay chain's runtime. You can see the Polkadot [`async_backing_params`](https://github.com/polkadot-fellows/runtimes/blob/d49a9f33d0ea85ce51c26c84a70b61624ec06901/relay/polkadot/src/genesis_config_presets.rs#L131-L134){target=\_blank} as an example. `scheduling_lookahead` can also be set using the [`set_scheduling_lookahead`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_parachains/configuration/pallet/dispatchables/fn.set_scheduling_lookahead.html){target=\_blank} dispatchable.
5415+
This can be found in the relay chain's runtime. You can see the Polkadot [`async_backing_params`](https://github.com/polkadot-fellows/runtimes/blob/d49a9f33d0ea85ce51c26c84a70b61624ec06901/relay/polkadot/src/genesis_config_presets.rs#L131-L134){target=\_blank} as an example. You also want to make sure that the `lookahead` in [`schedulerParams`](https://paritytech.github.io/polkadot-sdk/master/cumulus_primitives_core/relay_chain/struct.SchedulerParams.html){target=\_blank} is set to `3`. This can be found by found by querying the [`scheduler_params`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_parachains/configuration/struct.HostConfiguration.html#structfield.scheduler_params){target=\_blank} using the [`configuration.activeConfig()`](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc-polkadot.helixstreet.io#/chainstate) query in PolkadotJS.
54175416

54185417
!!! warning
5419-
`scheduling_lookahead` must be set to 2, otherwise parachain block times will degrade to worse than with sync backing!
5418+
`lookahead` must be set to 3, otherwise parachain block times will degrade to worse than with sync backing!
54205419

54215420
## Phase 1 - Update Parachain Runtime
54225421

0 commit comments

Comments
 (0)