From 69ab5a64ed854cf898a8eef33747beecc34153c3 Mon Sep 17 00:00:00 2001 From: timorl Date: Mon, 10 Jul 2023 16:40:36 +0200 Subject: [PATCH] Increase block sync broadcast cooldowns (#1283) # Description Should make nodes send fewer block sync broadcasts without impacting sync speed. ## Type of change Co-authored-by: timorl --- finality-aleph/src/sync/service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finality-aleph/src/sync/service.rs b/finality-aleph/src/sync/service.rs index 37c70342..59ca1725 100644 --- a/finality-aleph/src/sync/service.rs +++ b/finality-aleph/src/sync/service.rs @@ -21,8 +21,8 @@ use crate::{ Metrics, SessionPeriod, }; -const BROADCAST_COOLDOWN: Duration = Duration::from_millis(200); -const BROADCAST_PERIOD: Duration = Duration::from_secs(1); +const BROADCAST_COOLDOWN: Duration = Duration::from_millis(600); +const BROADCAST_PERIOD: Duration = Duration::from_secs(5); const FINALIZATION_STALL_CHECK_PERIOD: Duration = Duration::from_secs(30); /// A service synchronizing the knowledge about the chain between the nodes.