From c0df223e13862851ab5a4dadc1e592acea37f88d Mon Sep 17 00:00:00 2001
From: Alexandru Gheorghe <49718502+alexggh@users.noreply.github.com>
Date: Thu, 24 Oct 2024 17:01:12 +0300
Subject: [PATCH] Enable approval-voting-parallel by default on kusama (#6218)

The approval-voting-parallel introduced with
https://github.com/paritytech/polkadot-sdk/pull/4849 has been tested on
`versi` and approximately 3 weeks on parity's existing kusama nodes
https://github.com/paritytech/devops/issues/3583, things worked as
expected, so enable it by default on all kusama nodes in the next
release.

The next step will be enabling by default on polkadot if no issue
arrises while running on kusama.

---------

Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
---
 polkadot/node/service/src/lib.rs | 9 ++++-----
 prdoc/pr_6218.prdoc              | 9 +++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 prdoc/pr_6218.prdoc

diff --git a/polkadot/node/service/src/lib.rs b/polkadot/node/service/src/lib.rs
index da3ab760ed2..d6f24159e1d 100644
--- a/polkadot/node/service/src/lib.rs
+++ b/polkadot/node/service/src/lib.rs
@@ -759,13 +759,12 @@ pub fn new_full<
 		Some(backoff)
 	};
 
-	// Running approval voting in parallel is enabled by default on all networks except Polkadot and
-	// Kusama, unless explicitly enabled by the commandline option.
+	// Running approval voting in parallel is enabled by default on all networks except Polkadot
+	// unless explicitly enabled by the commandline option.
 	// This is meant to be temporary until we have enough confidence in the new system to enable it
 	// by default on all networks.
-	let enable_approval_voting_parallel = (!config.chain_spec.is_kusama() &&
-		!config.chain_spec.is_polkadot()) ||
-		enable_approval_voting_parallel;
+	let enable_approval_voting_parallel =
+		!config.chain_spec.is_polkadot() || enable_approval_voting_parallel;
 
 	let disable_grandpa = config.disable_grandpa;
 	let name = config.network.node_name.clone();
diff --git a/prdoc/pr_6218.prdoc b/prdoc/pr_6218.prdoc
new file mode 100644
index 00000000000..5c97c926f23
--- /dev/null
+++ b/prdoc/pr_6218.prdoc
@@ -0,0 +1,9 @@
+title: Enable approval-voting-parallel by default on kusama
+
+doc:
+  - audience: Node Dev
+    description: |
+        Enable approval-voting-parallel by default on kusama
+crates:
+  - name: polkadot-service
+    bump: patch
-- 
GitLab