Skip to content

Commit

Permalink
test no sort, with validator field
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon authored and yan-soon committed May 6, 2024
1 parent ee9dd54 commit 884ee67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions oracle/service/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package runner

import (
"context"
"sort"

// "sort"
"time"

log "github.com/sirupsen/logrus"

Check failure on line 8 in oracle/service/runner/runner.go

View workflow job for this annotation

GitHub Actions / golangci-lint

import 'github.com/sirupsen/logrus' is not allowed from list 'main' (depguard)

Check failure on line 8 in oracle/service/runner/runner.go

View workflow job for this annotation

GitHub Actions / golangci-lint

import 'github.com/sirupsen/logrus' is not allowed from list 'main' (depguard)
Expand Down Expand Up @@ -63,7 +61,7 @@ func ProcessSignVoteQueue(oracleInfo *types.OracleInfo, consensusState *cs.State
unsignedVotes := oracleInfo.UnsignedVoteBuffer.Buffer

// sort the votes so that we can rebuild it in a deterministic order, when uncompressing
sort.Sort(ByVote(unsignedVotes))
// sort.Sort(ByVote(unsignedVotes))

// batch sign the entire unsignedVoteBuffer and add to gossipBuffer
newGossipVote := &oracleproto.GossipedVotes{
Expand Down

0 comments on commit 884ee67

Please sign in to comment.