Skip to content

Commit

Permalink
[quorum] return earlier idx if found in IndexOf
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Chen <leo@harmony.one>
  • Loading branch information
Leo Chen committed Jun 20, 2020
1 parent 01c16f1 commit c79540d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/quorum/quorum.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (s *cIdentities) IndexOf(pubKey *bls.PublicKey) int {
for k, v := range s.publicKeys {
if v.IsEqual(pubKey) {
idx = k
break
}
}
return idx
Expand Down

0 comments on commit c79540d

Please sign in to comment.