grandpa: restrict grandpa gossip (#9131)

* grandpa: make gossip more conservative (and fair)

* grandpa: make round commit timer dependent on gossip_duration

* grandpa: add gossip tests

* grandpa: reduce variance in tests
This commit is contained in:
André Silva
2021-06-18 20:31:00 +01:00
committed by GitHub
parent 50b9c35037
commit 90d47870a9
3 changed files with 276 additions and 273 deletions
@@ -41,7 +41,7 @@ use wasm_timer::Instant;
// this cache should take about 256 KB of memory.
const KNOWN_MESSAGES_CACHE_SIZE: usize = 8192;
const REBROADCAST_INTERVAL: time::Duration = time::Duration::from_secs(30);
const REBROADCAST_INTERVAL: time::Duration = time::Duration::from_millis(750);
pub(crate) const PERIODIC_MAINTENANCE_INTERVAL: time::Duration = time::Duration::from_millis(1100);