mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user