Skip to content

Commit

Permalink
revert multisig M>N rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Jan 17, 2025
1 parent 642e881 commit 8e81d82
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crypto/keys/multisig/multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ func (m *LegacyAminoPubKey) VerifyMultisignature(getSignBytes multisigtypes.GetS
if int(m.Threshold) <= 0 {
return fmt.Errorf("invalid threshold: must be > 0, got %d", m.Threshold)
}
if len(pubKeys) <= int(m.Threshold) {
return fmt.Errorf("invalid N-M multisig: N (%d) must be > M (%d)", len(pubKeys), m.Threshold)
}
// ensure bit array is the correct size
if len(pubKeys) != size {
return fmt.Errorf("bit array size is incorrect, expecting: %d", len(pubKeys))
Expand Down

0 comments on commit 8e81d82

Please sign in to comment.