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 authored and GitHub committed 2021-06-18 19:31:00 +00:00
1 parent 50b9c35037
commit 90d47870a9
3 files changed
+276 -273

No files matched your search

@@ -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);