From d2bb70ee8cd328ef1b690059d9e30e18d3a7de55 Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Tue, 25 Mar 2025 12:06:15 +0800 Subject: [PATCH] Remove current slot --- validator_client/validator_services/src/sync.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/validator_client/validator_services/src/sync.rs b/validator_client/validator_services/src/sync.rs index 4e2d3b4571..73e4c69d71 100644 --- a/validator_client/validator_services/src/sync.rs +++ b/validator_client/validator_services/src/sync.rs @@ -520,15 +520,8 @@ pub async fn fill_in_aggregation_proofs( "pre_compute_slot" => pre_compute_slot ); - let slots_to_process = if duties_service.distributed { - vec![current_slot] - } else { - (current_slot.as_u64()..=pre_compute_slot.as_u64()) - .map(Slot::new) - .collect::>() - }; // Generate selection proofs for each validator at each slot, one slot at a time. - for slot in slots_to_process { + for slot in (current_slot.as_u64()..=pre_compute_slot.as_u64()).map(Slot::new) { let mut validator_proofs = vec![]; for (validator_start_slot, duty) in pre_compute_duties { // Proofs are already known at this slot for this validator.