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
2 people authored and ordian committed Nov 15, 2022
1 parent 71b5aac commit ed143f2
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 ed143f2

Please sign in to comment.