Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Revert special casing of Kusama for grandpa rounds. (#6217)
Browse files Browse the repository at this point in the history
Co-authored-by: eskimor <eskimor@no-such-url.com>
  • Loading branch information
eskimor and eskimor authored Nov 15, 2022
1 parent 624ae57 commit 353c57b
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1221,22 +1221,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,
Expand Down

0 comments on commit 353c57b

Please sign in to comment.