-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump authoring duration for async backing to 2s. #5195
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,7 +174,7 @@ | |
//! - In the `para_client` field, pass in a cloned para client rather than the original | ||
//! - Add a `para_backend` parameter after `para_client`, passing in our para backend | ||
//! - Provide a `code_hash_provider` closure like that shown below | ||
//! - Increase `authoring_duration` from 500 milliseconds to 1500 | ||
//! - Increase `authoring_duration` from 500 milliseconds to 2000 | ||
//! ```ignore | ||
//! let params = AuraParams { | ||
//! .. | ||
|
@@ -185,7 +185,7 @@ | |
//! client.code_at(block_hash).ok().map(|c| ValidationCode::from(c).hash()) | ||
//! }, | ||
//! .. | ||
//! authoring_duration: Duration::from_millis(1500), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this one needs to be increased as well: https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/polkadot-parachain/src/service.rs#L835 Right @s0me0ne-unkn0wn ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Westend still has 2sec backing timeout, so we should bump it on Westend first, and then we may bump it there. It also should be considered that this change would affect all the system parachains as they're using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it should be fine, AFAIK nobody is actually fully saturating the execution. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, some runtimes do saturate by design (like HydraDX) so they may start having problems on Westend. On the other hand, I doubt if they're using |
||
//! authoring_duration: Duration::from_millis(2000), | ||
//! .. | ||
//! }; | ||
//! ``` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Bump Aura authoring duration to 2s. | ||
|
||
doc: | ||
- audience: Node Dev | ||
description: | | ||
This PR bumps the Aura authoring duration in the asynchronous backing | ||
guide and the polkadot-parachain service file to 2s in order to make | ||
better use of the provided coretime. | ||
|
||
crates: | ||
- name: polkadot-parachain-bin | ||
bump: patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make it clear how this value is related to the configuration on the relay chain.