Skip to content

Commit

Permalink
Update btc/scripts.go
Browse files Browse the repository at this point in the history
Removed redundant check

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
susruth and coderabbitai[bot] authored Jul 15, 2024
1 parent 192563f commit b7454c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btc/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func RedeemLeaf(redeemerPubkey, secretHash []byte) (txscript.TapLeaf, error) {
//
// initiatorPubkey must be x-only pubkey of the initiator.
func RefundLeaf(initiatorPubkey []byte, lockTime uint32) (txscript.TapLeaf, error) {
if lockTime > math.MaxUint16 || lockTime < 0 {
if lockTime > math.MaxUint16 {
return txscript.TapLeaf{}, ErrInvalidLockTime
}
// 64b275202a003722cb3cd5207b5cd37bab158ddd36a1000abfa316bbd8811987139247fdac
Expand Down

0 comments on commit b7454c8

Please sign in to comment.