From 0190506c45b69ba5a095867c4400341548ecba61 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Thu, 15 Jul 2021 11:26:56 +1000 Subject: [PATCH] Reset range sync params I had lowered them for a testnet with very few peers. --- beacon_node/network/src/sync/range_sync/chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/network/src/sync/range_sync/chain.rs b/beacon_node/network/src/sync/range_sync/chain.rs index b3aa60ffe3a..87c2f2762e9 100644 --- a/beacon_node/network/src/sync/range_sync/chain.rs +++ b/beacon_node/network/src/sync/range_sync/chain.rs @@ -18,10 +18,10 @@ use types::{Epoch, EthSpec, Hash256, SignedBeaconBlock, Slot}; /// we will negatively report peers with poor bandwidth. This can be set arbitrarily high, in which /// case the responder will fill the response up to the max request size, assuming they have the /// bandwidth to do so. -pub const EPOCHS_PER_BATCH: u64 = 1; +pub const EPOCHS_PER_BATCH: u64 = 2; /// The maximum number of batches to queue before requesting more. -const BATCH_BUFFER_SIZE: u8 = 1; +const BATCH_BUFFER_SIZE: u8 = 5; /// A return type for functions that act on a `Chain` which informs the caller whether the chain /// has been completed and should be removed or to be kept if further processing is