From 0fd858eed2b6de293e90b40a842537243bd34a7d Mon Sep 17 00:00:00 2001 From: eskimor Date: Sun, 30 Oct 2022 15:23:14 +0100 Subject: [PATCH] Revert special casing of Kusama for grandpa rounds. --- node/service/src/lib.rs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index 3619d05c7592..39f8312c1376 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -1219,22 +1219,11 @@ where } } - // Reduce grandpa load on Kusama and test networks. This will slow down finality by - // approximately one slot duration, but will reduce load. We would like to see the impact on - // Kusama, see: https://github.com/paritytech/polkadot/issues/5464 - let gossip_duration = if chain_spec.is_versi() || - chain_spec.is_wococo() || - chain_spec.is_rococo() || - chain_spec.is_kusama() - { - Duration::from_millis(2000) - } else { - Duration::from_millis(1000) - }; - let config = grandpa::Config { // FIXME substrate#1578 make this available through chainspec - gossip_duration, + // Grandpa performance can be improved a bit by tuning this parameter, see: + // https://github.com/paritytech/polkadot/issues/5464 + gossip_duration: Duration::from_millis(1000), justification_period: 512, name: Some(name), observer_enabled: false,