1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 22:25:26 +01:00

htlc success/timeout tx: input sequence should be 0

This commit is contained in:
sstone 2017-02-03 11:49:12 +01:00
parent 92d297b3d9
commit 8b275cfd5c

View file

@ -183,7 +183,7 @@ object Transactions {
val input = InputInfo(OutPoint(commitTx, outputIndex), commitTx.txOut(outputIndex), write(redeemScript))
HtlcTimeoutTx(input, Transaction(
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,
lockTime = htlc.expiry))
}
@ -197,7 +197,7 @@ object Transactions {
val input = InputInfo(OutPoint(commitTx, outputIndex), commitTx.txOut(outputIndex), write(redeemScript))
HtlcSuccessTx(input, Transaction(
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,
lockTime = 0), htlc.paymentHash)
}