From 49cda21f376fb04c4bc35073dea263e1652904f9 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 24 Jun 2022 10:58:49 +1000 Subject: [PATCH] Slightly increase some syncer defaults (#4679) This is a partial revert of PR #4670. --- zebrad/src/components/sync.rs | 2 +- zebrad/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 118808f19..7ab85cf68 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -81,7 +81,7 @@ pub const MIN_LOOKAHEAD_LIMIT: usize = zebra_consensus::MAX_CHECKPOINT_HEIGHT_GA /// See [`MIN_LOOKAHEAD_LIMIT`] for details. /// /// TODO: increase to `MAX_CHECKPOINT_HEIGHT_GAP * 5`, after we implement orchard batching -pub const DEFAULT_LOOKAHEAD_LIMIT: usize = MIN_LOOKAHEAD_LIMIT; +pub const DEFAULT_LOOKAHEAD_LIMIT: usize = zebra_consensus::MAX_CHECKPOINT_HEIGHT_GAP * 3; /// The expected maximum number of hashes in an ObtainTips or ExtendTips response. /// diff --git a/zebrad/src/config.rs b/zebrad/src/config.rs index 1087b05e0..3e2cad9c3 100644 --- a/zebrad/src/config.rs +++ b/zebrad/src/config.rs @@ -198,7 +198,7 @@ impl Default for SyncSection { fn default() -> Self { Self { // TODO: increase to 50, after we implement orchard batching - max_concurrent_block_requests: 25, + max_concurrent_block_requests: 40, lookahead_limit: sync::DEFAULT_LOOKAHEAD_LIMIT, } }