Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Oct 14, 2024
1 parent b55faa4 commit 343eb84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/btcstaking/types/btc_slashing_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ func (tx *BTCSlashingTx) BuildSlashingTxWithWitness(
break
}
}
// ensure the number of covenant signatures is at least the quorum number
if numSigs < covenantQuorum {
return nil, fmt.Errorf("not enough covenant signatures to reach quorum")
}

/*
construct finality providers' part of witness, i.e.,
Expand Down

0 comments on commit 343eb84

Please sign in to comment.