Skip to content

Commit

Permalink
fix valid duty check
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshmuelov committed Dec 1, 2024
1 parent c5ffd7e commit d18d91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/v2/ssv/validator/committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (c *Committee) StartDuty(logger *zap.Logger, duty *spectypes.CommitteeDuty)
filteredDuty.ValidatorDuties = append(filteredDuty.ValidatorDuties, beaconDuty)

if beaconDuty.Type == spectypes.BNRoleAttester {
if c.dutyGuard.ValidDuty(spectypes.BNRoleAttester, share.ValidatorPubKey, duty.Slot) != nil {
if c.dutyGuard.ValidDuty(spectypes.BNRoleAttester, share.ValidatorPubKey, duty.Slot) == nil {
attesters = append(attesters, share.SharePubKey)
}
}
Expand Down

0 comments on commit d18d91a

Please sign in to comment.