From 6100ed3405a939f55ec680d5be50763bf0a50c19 Mon Sep 17 00:00:00 2001 From: olegshmuelov <45327364+olegshmuelov@users.noreply.github.com> Date: Sun, 1 Dec 2024 18:13:19 +0200 Subject: [PATCH] add log for invalid duty validator --- protocol/v2/ssv/validator/committee.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocol/v2/ssv/validator/committee.go b/protocol/v2/ssv/validator/committee.go index 6a7523dddf..962e63d824 100644 --- a/protocol/v2/ssv/validator/committee.go +++ b/protocol/v2/ssv/validator/committee.go @@ -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))) } } }