Skip to content

Commit 3d80b05

Browse files
committed
improve participant check
1 parent 50d0cbb commit 3d80b05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x/btcbridge/types/tss.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/binary"
77
"encoding/hex"
88
"reflect"
9+
"strings"
910

1011
"github.com/cometbft/cometbft/crypto"
1112
"github.com/cometbft/cometbft/crypto/tmhash"
@@ -25,7 +26,7 @@ func MustGetConsensusAddr(consPubKey string) string {
2526
// ParticipantExists returns true if the given address is a participant, false otherwise
2627
func ParticipantExists(participants []*DKGParticipant, consAddress string) bool {
2728
for _, p := range participants {
28-
if MustGetConsensusAddr(p.ConsensusPubkey) == consAddress {
29+
if MustGetConsensusAddr(p.ConsensusPubkey) == strings.ToLower(consAddress) {
2930
return true
3031
}
3132
}

0 commit comments

Comments
 (0)