fix off-by-one in fill_in_aggregation_proofs

This commit is contained in:
Daniel Knopik
2025-05-23 23:47:00 +02:00
parent a7d5244638
commit 1ba6712b26

View File

@@ -596,7 +596,7 @@ pub async fn fill_in_aggregation_proofs<S: ValidatorStore, T: SlotClock + 'stati
pre_compute_slot: Slot,
) {
// Generate selection proofs for each validator at each slot, one slot at a time.
for slot in (current_slot.as_u64()..=pre_compute_slot.as_u64()).map(Slot::new) {
for slot in ((current_slot.as_u64() + 1)..=(pre_compute_slot.as_u64() + 1)).map(Slot::new) {
// For distributed mode
if duties_service
.sync_duties