Skip to content

Commit

Permalink
Comment out sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed May 10, 2020
1 parent c0d837e commit 7b7efef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"os"
"runtime"
runtimeDebug "runtime/debug"
"sort"

joonix "github.com/joonix/log"
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
Expand Down Expand Up @@ -168,11 +167,11 @@ contract in order to activate the validator client`,
if err := conn.Close(); err != nil {
log.WithError(err).Error("Could not close connection to beacon node.")
}
// XXX: This sort does not work right now. We need to have the
// XXX: Sorting 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
})
// sort.Slice(statuses, func(i, j int) bool {
// return statuses[i].Status < statuses[j].Status
// })
// TODO: Properly print statuses
fmt.Println(statuses)
return nil
Expand Down

0 comments on commit 7b7efef

Please sign in to comment.