diff --git a/polkadot/node/network/approval-distribution/src/lib.rs b/polkadot/node/network/approval-distribution/src/lib.rs index fe73271c5c..c2bbd1b458 100644 --- a/polkadot/node/network/approval-distribution/src/lib.rs +++ b/polkadot/node/network/approval-distribution/src/lib.rs @@ -138,9 +138,9 @@ impl AggressionConfig { impl Default for AggressionConfig { fn default() -> Self { AggressionConfig { - l1_threshold: Some(10), - l2_threshold: Some(25), - resend_unfinalized_period: Some(5), + l1_threshold: Some(13), + l2_threshold: Some(28), + resend_unfinalized_period: Some(8), } } } diff --git a/polkadot/node/service/src/lib.rs b/polkadot/node/service/src/lib.rs index 312d8f760d..ddedcbe6aa 100644 --- a/polkadot/node/service/src/lib.rs +++ b/polkadot/node/service/src/lib.rs @@ -1180,9 +1180,22 @@ 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: Duration::from_millis(1000), + gossip_duration, justification_period: 512, name: Some(name), observer_enabled: false,