Skip to content

Commit

Permalink
Changed to show all slashed validators in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisei24 committed Jun 5, 2024
1 parent 27ea829 commit 51b0ecf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/pkg/api/data_access/vdb_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,7 @@ func (d *DataAccessService) GetValidatorDashboardGroupSummary(dashboardId t.VDBI

if row.SlashedInPeriod {
data.Slashed.StatusCount.Failed++
if data.Slashed.Validators == nil {
data.Slashed.Validators = make([]t.VDBValidator, 0, 10)
data.Slashed.Validators = append(data.Slashed.Validators, t.VDBValidator(row.ValidatorIndex))
}
data.Slashed.Validators = append(data.Slashed.Validators, t.VDBValidator(row.ValidatorIndex))
}
data.Slashed.StatusCount.Success += uint64(row.SlashedAmount)

Expand Down

0 comments on commit 51b0ecf

Please sign in to comment.