diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-08-07 19:35:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 19:35:45 +0800 |
commit | 46cf0a616b597dfb8b1feff80ad58b6eb81e57d5 (patch) | |
tree | 1438919a1ab7a04d865a2d013cbaa479d985c86b | |
parent | 85454e7678f8f295ae72b8579aa443f9e45344cb (diff) | |
parent | 80de4dc72c8d9967fdb3b40e9a8790c87e1400b5 (diff) | |
download | go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.tar go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.tar.gz go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.tar.bz2 go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.tar.lz go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.tar.xz go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.tar.zst go-tangerine-46cf0a616b597dfb8b1feff80ad58b6eb81e57d5.zip |
Merge pull request #14914 from egonelbre/megacheck_consensus
consensus: fix megacheck warnings
-rw-r--r-- | consensus/clique/snapshot.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/consensus/clique/snapshot.go b/consensus/clique/snapshot.go index 32a1191db..9ebdb8df1 100644 --- a/consensus/clique/snapshot.go +++ b/consensus/clique/snapshot.go @@ -229,9 +229,9 @@ func (s *Snapshot) apply(headers []*types.Header) (*Snapshot, error) { // Tally up the new vote from the signer var authorize bool switch { - case bytes.Compare(header.Nonce[:], nonceAuthVote) == 0: + case bytes.Equal(header.Nonce[:], nonceAuthVote): authorize = true - case bytes.Compare(header.Nonce[:], nonceDropVote) == 0: + case bytes.Equal(header.Nonce[:], nonceDropVote): authorize = false default: return nil, errInvalidVote |