Fix finalized_sync_permanent_custody_peer_failure

This commit is contained in:
dapplion
2025-06-04 22:20:45 -06:00
parent 2b4a9bda44
commit ae0ef8f929
7 changed files with 66 additions and 62 deletions

View File

@@ -90,10 +90,10 @@ where
name = "range_sync",
skip_all
)]
pub fn new(beacon_chain: Arc<BeaconChain<T>>) -> Self {
pub fn new(beacon_chain: Arc<BeaconChain<T>>, batch_buffer_size: usize) -> Self {
RangeSync {
beacon_chain: beacon_chain.clone(),
chains: ChainCollection::new(beacon_chain),
chains: ChainCollection::new(beacon_chain, batch_buffer_size),
failed_chains: LRUTimeCache::new(std::time::Duration::from_secs(
FAILED_CHAINS_EXPIRY_SECONDS,
)),