From c2769dcc5024b64a42dc702bdc69e1d94192fdd3 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 27 May 2022 04:51:52 +1000 Subject: [PATCH] Activate the mempool after 2 tip syncer runs (#4501) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- zebrad/src/components/sync/recent_sync_lengths.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebrad/src/components/sync/recent_sync_lengths.rs b/zebrad/src/components/sync/recent_sync_lengths.rs index d5c1ac8e..2aa59d8b 100644 --- a/zebrad/src/components/sync/recent_sync_lengths.rs +++ b/zebrad/src/components/sync/recent_sync_lengths.rs @@ -31,7 +31,7 @@ impl RecentSyncLengths { /// * clearing temporary errors and temporary syncs quickly /// * distinguishing between temporary and sustained syncs/errors /// * activating the syncer shortly after reaching the chain tip - pub const MAX_RECENT_LENGTHS: usize = 4; + pub const MAX_RECENT_LENGTHS: usize = 2; /// Create a new instance of [`RecentSyncLengths`] /// and a [`watch::Receiver`] endpoint for receiving recent sync lengths.