From 6b435a8dea7c20315a3e8adc3c0b7cad7ac2f6f9 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 71082884c..0c0960a23 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