Skip to content

Commit 0ed1e97

Browse files
committed
chore: sync validator error formatting
1 parent f2b4385 commit 0ed1e97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/pkg/api/services/service_slot_viz.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ func (s *Services) updateSlotVizData() error {
228228
dutiesInfo.SlotSyncParticipated[duty.Slot] = make(map[constypes.ValidatorIndex]bool, 0)
229229

230230
partValidators := utils.GetParticipatingSyncCommitteeValidators(duty.SyncAggregateBits, dutiesInfo.TotalSyncAssignmentsForEpoch[utils.EpochOfSlot(duty.Slot)])
231-
if len(partValidators) == 0 {
232-
log.Error(nil, "no participating sync validators found", 0, map[string]interface{}{"slot": duty.Slot})
231+
if partValidators == nil {
232+
log.Error(nil, "couldn't align sync validators", 0, map[string]interface{}{"slot": duty.Slot})
233233
}
234234
for _, validator := range partValidators {
235235
dutiesInfo.SlotSyncParticipated[duty.Slot][validator] = true

0 commit comments

Comments
 (0)