From 66265dc11aefcfa6d7f57aae311bd98f3b8602d9 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 9 Sep 2020 10:05:54 +1000 Subject: [PATCH] Adjust the EWMA decay for the latest sync timeout --- zebra-network/src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-network/src/constants.rs b/zebra-network/src/constants.rs index 5077288dd..37a4fcfd4 100644 --- a/zebra-network/src/constants.rs +++ b/zebra-network/src/constants.rs @@ -92,7 +92,7 @@ pub const EWMA_DEFAULT_RTT: Duration = Duration::from_secs(20 + 1); /// /// This should be much larger than the `SYNC_RESTART_TIMEOUT`, so we choose /// better peers when we restart the sync. -pub const EWMA_DECAY_TIME: Duration = Duration::from_secs(120); +pub const EWMA_DECAY_TIME: Duration = Duration::from_secs(200); /// Magic numbers used to identify different Zcash networks. pub mod magics {