Skip to content

Commit a0a6b93

Browse files
authored
Do not compute sync selection proofs for the sync duty at the current slot (#7551)
1 parent 8e3c5d1 commit a0a6b93

File tree

1 file changed

+5
-1
lines changed
  • validator_client/validator_services/src

1 file changed

+5
-1
lines changed

validator_client/validator_services/src/sync.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,12 @@ pub async fn fill_in_aggregation_proofs<S: ValidatorStore, T: SlotClock + 'stati
512512
"Calculating sync selection proofs"
513513
);
514514

515+
// Start at the next slot, as aggregation proofs for the duty at the current slot are no longer
516+
// required since we do the actual aggregation in the slot before the duty slot.
517+
let start_slot = current_slot.as_u64() + 1;
518+
515519
// Generate selection proofs for each validator at each slot, one slot at a time.
516-
for slot in (current_slot.as_u64()..=pre_compute_slot.as_u64()).map(Slot::new) {
520+
for slot in (start_slot..=pre_compute_slot.as_u64()).map(Slot::new) {
517521
let mut validator_proofs = vec![];
518522
for (validator_start_slot, duty) in pre_compute_duties {
519523
// Proofs are already known at this slot for this validator.

0 commit comments

Comments
 (0)