mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-23 14:40:34 +01:00
htlc success/timeout tx: input sequence should be 0
This commit is contained in:
parent
92d297b3d9
commit
8b275cfd5c
1 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ object Transactions {
|
||||||
val input = InputInfo(OutPoint(commitTx, outputIndex), commitTx.txOut(outputIndex), write(redeemScript))
|
val input = InputInfo(OutPoint(commitTx, outputIndex), commitTx.txOut(outputIndex), write(redeemScript))
|
||||||
HtlcTimeoutTx(input, Transaction(
|
HtlcTimeoutTx(input, Transaction(
|
||||||
version = 2,
|
version = 2,
|
||||||
txIn = TxIn(input.outPoint, Array.emptyByteArray, 0xffffffffL) :: Nil,
|
txIn = TxIn(input.outPoint, Array.emptyByteArray, 0) :: Nil,
|
||||||
txOut = TxOut(MilliSatoshi(htlc.amountMsat) - fee, pay2wsh(toLocalDelayed(localRevocationPubkey, toLocalDelay, localPubKey))) :: Nil,
|
txOut = TxOut(MilliSatoshi(htlc.amountMsat) - fee, pay2wsh(toLocalDelayed(localRevocationPubkey, toLocalDelay, localPubKey))) :: Nil,
|
||||||
lockTime = htlc.expiry))
|
lockTime = htlc.expiry))
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ object Transactions {
|
||||||
val input = InputInfo(OutPoint(commitTx, outputIndex), commitTx.txOut(outputIndex), write(redeemScript))
|
val input = InputInfo(OutPoint(commitTx, outputIndex), commitTx.txOut(outputIndex), write(redeemScript))
|
||||||
HtlcSuccessTx(input, Transaction(
|
HtlcSuccessTx(input, Transaction(
|
||||||
version = 2,
|
version = 2,
|
||||||
txIn = TxIn(input.outPoint, Array.emptyByteArray, 0xffffffffL) :: Nil,
|
txIn = TxIn(input.outPoint, Array.emptyByteArray, 0) :: Nil,
|
||||||
txOut = TxOut(MilliSatoshi(htlc.amountMsat) - fee, pay2wsh(toLocalDelayed(localRevocationPubkey, toLocalDelay, localPubkey))) :: Nil,
|
txOut = TxOut(MilliSatoshi(htlc.amountMsat) - fee, pay2wsh(toLocalDelayed(localRevocationPubkey, toLocalDelay, localPubkey))) :: Nil,
|
||||||
lockTime = 0), htlc.paymentHash)
|
lockTime = 0), htlc.paymentHash)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue