Skip to content

Commit

Permalink
add log for invalid duty validator
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshmuelov committed Dec 1, 2024
1 parent d18d91a commit 6100ed3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protocol/v2/ssv/validator/committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func (c *Committee) StartDuty(logger *zap.Logger, duty *spectypes.CommitteeDuty)
if beaconDuty.Type == spectypes.BNRoleAttester {
if c.dutyGuard.ValidDuty(spectypes.BNRoleAttester, share.ValidatorPubKey, duty.Slot) == nil {
attesters = append(attesters, share.SharePubKey)
} else {
logger.Warn("committee validator duty is not valid, skipping",
fields.Validator(share.ValidatorPubKey[:]),
zap.Uint64("validator_index", uint64(beaconDuty.ValidatorIndex)))
}
}
}
Expand Down

0 comments on commit 6100ed3

Please sign in to comment.