From 1902a850a94c12346ed46bc7e12376c06dab14c6 Mon Sep 17 00:00:00 2001 From: eskimor Date: Wed, 31 Jul 2024 10:58:48 +0200 Subject: [PATCH 1/4] Bump authoring duration for async backing to 2s. --- docs/sdk/src/guides/async_backing_guide.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sdk/src/guides/async_backing_guide.rs b/docs/sdk/src/guides/async_backing_guide.rs index a9fda2c3aa8a..25ef3a12cbf0 100644 --- a/docs/sdk/src/guides/async_backing_guide.rs +++ b/docs/sdk/src/guides/async_backing_guide.rs @@ -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), +//! authoring_duration: Duration::from_millis(2000), //! .. //! }; //! ``` From a19f6c838425478c3a7ca52297ea6de4158bb484 Mon Sep 17 00:00:00 2001 From: eskimor Date: Wed, 31 Jul 2024 12:10:22 +0200 Subject: [PATCH 2/4] Add prdoc --- prdoc/pr_5195.prdoc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 prdoc/pr_5195.prdoc diff --git a/prdoc/pr_5195.prdoc b/prdoc/pr_5195.prdoc new file mode 100644 index 000000000000..0b060426f9ab --- /dev/null +++ b/prdoc/pr_5195.prdoc @@ -0,0 +1,9 @@ +# 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 to 2s in order to make better use of the provided coretime. From 80a8094507f59b89f8df82e0d3cb12f960b7eb47 Mon Sep 17 00:00:00 2001 From: eskimor Date: Wed, 31 Jul 2024 12:12:50 +0200 Subject: [PATCH 3/4] Update service file as well. --- cumulus/polkadot-parachain/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulus/polkadot-parachain/src/service.rs b/cumulus/polkadot-parachain/src/service.rs index 80698a2d7115..3b9ae6bd4457 100644 --- a/cumulus/polkadot-parachain/src/service.rs +++ b/cumulus/polkadot-parachain/src/service.rs @@ -832,7 +832,7 @@ where relay_chain_slot_duration, proposer: Proposer::new(proposer_factory), collator_service, - authoring_duration: Duration::from_millis(1500), + authoring_duration: Duration::from_millis(2000), reinitialize: false, }, }; From fe00b6283158b0bf4f9beaa116a4a30e6d16aa66 Mon Sep 17 00:00:00 2001 From: eskimor Date: Wed, 31 Jul 2024 12:15:07 +0200 Subject: [PATCH 4/4] Add affected crates --- prdoc/pr_5195.prdoc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prdoc/pr_5195.prdoc b/prdoc/pr_5195.prdoc index 0b060426f9ab..cfd435fa289d 100644 --- a/prdoc/pr_5195.prdoc +++ b/prdoc/pr_5195.prdoc @@ -6,4 +6,10 @@ title: Bump Aura authoring duration to 2s. doc: - audience: Node Dev description: | - This PR bumps the Aura authoring duration in the asynchronous backing guide to 2s in order to make better use of the provided coretime. + 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