From 9dffc9eea0bce947a139dabca1c861e2facdc18a Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Sat, 20 Jun 2020 02:09:40 +0000 Subject: [PATCH] [quorum] return earlier idx if found in IndexOf Signed-off-by: Leo Chen --- consensus/quorum/quorum.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/quorum/quorum.go b/consensus/quorum/quorum.go index 71082884cc..0c0960a23e 100644 --- a/consensus/quorum/quorum.go +++ b/consensus/quorum/quorum.go @@ -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