We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d0cbb commit 3d80b05Copy full SHA for 3d80b05
x/btcbridge/types/tss.go
@@ -6,6 +6,7 @@ import (
6
"encoding/binary"
7
"encoding/hex"
8
"reflect"
9
+ "strings"
10
11
"github.com/cometbft/cometbft/crypto"
12
"github.com/cometbft/cometbft/crypto/tmhash"
@@ -25,7 +26,7 @@ func MustGetConsensusAddr(consPubKey string) string {
25
26
// ParticipantExists returns true if the given address is a participant, false otherwise
27
func ParticipantExists(participants []*DKGParticipant, consAddress string) bool {
28
for _, p := range participants {
- if MustGetConsensusAddr(p.ConsensusPubkey) == consAddress {
29
+ if MustGetConsensusAddr(p.ConsensusPubkey) == strings.ToLower(consAddress) {
30
return true
31
}
32
0 commit comments