Remove current slot

This commit is contained in:
Tan Chee Keong
2025-03-25 12:06:15 +08:00
parent f7f5bf1b86
commit d2bb70ee8c

View File

@@ -520,15 +520,8 @@ pub async fn fill_in_aggregation_proofs<T: SlotClock + 'static, E: EthSpec>(
"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::<Vec<_>>()
};
// 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.