Slightly increase some syncer defaults (#4679)

This is a partial revert of PR #4670.
This commit is contained in:
teor 2022-06-24 10:58:49 +10:00 committed by GitHub
parent b35ab67ef0
commit 49cda21f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.
///

View File

@ -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,
}
}