@@ -105,7 +105,7 @@ func (n *Notifier) sendNotification(payload NotificationPayload) error {
105105}
106106
107107// SendValidatorLivenessNot sends a notification when one or more validators go offline or online.
108- func (n * Notifier ) SendValidatorLivenessNot (validators []domain.ValidatorIndex , live bool ) error {
108+ func (n * Notifier ) SendValidatorLivenessNot (validators []domain.ValidatorIndex , epoch domain. Epoch , live bool ) error {
109109 var title , body string
110110 var priority Priority
111111 var status Status
@@ -121,13 +121,13 @@ func (n *Notifier) SendValidatorLivenessNot(validators []domain.ValidatorIndex,
121121 }
122122 if live {
123123 title = fmt .Sprintf ("All validators back online (%d)" , len (validators ))
124- body = fmt .Sprintf ("✅ All validators are back online and atesting on %s (%d)." , n .Network , len (validators ))
124+ body = fmt .Sprintf ("✅ All validators are back online and atesting at epoch %d on %s (%d)." , epoch , n .Network , len (validators ))
125125 priority = Low
126126 status = Resolved
127127 isBanner = false
128128 } else {
129129 title = fmt .Sprintf ("Validator(s) Offline: %s" , indexesToString (validators , true ))
130- body = fmt .Sprintf ("❌ Validator(s) %s are not attesting on %s." , indexesToString (validators , true ), n .Network )
130+ body = fmt .Sprintf ("❌ Validator(s) %s are not attesting at epoch %d on %s." , indexesToString (validators , true ), epoch , n .Network )
131131 priority = High
132132 status = Triggered
133133 isBanner = true
@@ -147,9 +147,9 @@ func (n *Notifier) SendValidatorLivenessNot(validators []domain.ValidatorIndex,
147147}
148148
149149// SendValidatorsSlashedNot sends a notification when one or more validators are slashed.
150- func (n * Notifier ) SendValidatorsSlashedNot (validators []domain.ValidatorIndex ) error {
150+ func (n * Notifier ) SendValidatorsSlashedNot (validators []domain.ValidatorIndex , epoch domain. Epoch ) error {
151151 title := fmt .Sprintf ("Validator(s) Slashed: %s" , indexesToString (validators , true ))
152- body := fmt .Sprintf ("🚨 Validator(s) %s have been slashed on %s! Immediate attention required." , indexesToString (validators , true ), n .Network )
152+ body := fmt .Sprintf ("🚨 Validator(s) %s have been slashed at epoch %d on %s! Immediate attention required." , indexesToString (validators , true ), epoch , n .Network )
153153 priority := Critical
154154 status := Triggered
155155 isBanner := true
@@ -174,7 +174,7 @@ func (n *Notifier) SendValidatorsSlashedNot(validators []domain.ValidatorIndex)
174174}
175175
176176// SendBlockProposalNot sends a notification when a block is proposed or missed by one or more validators.
177- func (n * Notifier ) SendBlockProposalNot (validators []domain.ValidatorIndex , epoch int , proposed bool ) error {
177+ func (n * Notifier ) SendBlockProposalNot (validators []domain.ValidatorIndex , epoch domain. Epoch , proposed bool ) error {
178178 var title , body string
179179 var priority Priority
180180 var status Status = Triggered
0 commit comments