Skip to content

Commit

Permalink
Merge pull request #201 from attestantio/fix-duties
Browse files Browse the repository at this point in the history
Fix duties array.
  • Loading branch information
mcdee authored Apr 18, 2024
2 parents 3c80967 + c018d97 commit 5fa7a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/attester/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func MergeDuties(ctx context.Context, attesterDuties []*api.AttesterDuty) ([]*Du
// Hence, if the validator is slashed we don't need to include its duty.

if _, exists := validatorIndices[duty.Slot]; !exists {
validatorIndices[duty.Slot] = make([]phase0.ValidatorIndex, arrayCap)
committeeIndices[duty.Slot] = make([]phase0.CommitteeIndex, arrayCap)
validatorIndices[duty.Slot] = make([]phase0.ValidatorIndex, 0, arrayCap)
committeeIndices[duty.Slot] = make([]phase0.CommitteeIndex, 0, arrayCap)
committeeLengths[duty.Slot] = make(map[phase0.CommitteeIndex]uint64)
committeesAtSlots[duty.Slot] = duty.CommitteesAtSlot
}
Expand Down

0 comments on commit 5fa7a12

Please sign in to comment.