Skip to content

Commit

Permalink
Add comment about sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed May 8, 2020
1 parent 4e97a2a commit 3c357a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator/accounts/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func FetchAccountStatuses(ctx context.Context, keyPairs map[string]*keystore.Key
}

// Sort responses by status
// XXX: This sort does not work right now. We need to have the
// public key of the validator indicated in the response.
sort.Slice(statuses, func(i, j int) bool {
return statuses[i].Status < statuses[j].Status
})
Expand Down

0 comments on commit 3c357a1

Please sign in to comment.