mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
lnwallet: fix receiver htlc script
* Fixes a bug in script_utils.go. CSV instead of CLTV was being used within the timeout clause of the receivers HTLC (sender can reclaim the HTLC).
This commit is contained in:
parent
0ce4fb1294
commit
d96cf0ec64
@ -192,7 +192,7 @@ func receiverHTLCScript(absoluteTimeout, relativeTimeout uint32, senderKey,
|
||||
// indefinately.
|
||||
builder.AddOp(txscript.OP_NOTIF)
|
||||
builder.AddInt64(int64(absoluteTimeout))
|
||||
builder.AddOp(OP_CHECKSEQUENCEVERIFY)
|
||||
builder.AddOp(txscript.OP_CHECKLOCKTIMEVERIFY)
|
||||
builder.AddOp(txscript.OP_DROP)
|
||||
builder.AddOp(txscript.OP_ENDIF)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user