mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
lnwallet: commit tx should have final sequence num
This commit is contained in:
parent
81a4887d11
commit
ab16933575
@ -589,9 +589,6 @@ func createCommitTx(fundingOutput *wire.TxIn, selfKey, theirKey *btcec.PublicKey
|
||||
commitTx := wire.NewMsgTx()
|
||||
commitTx.Version = 2
|
||||
commitTx.AddTxIn(fundingOutput)
|
||||
// TODO(roasbeef): we default to blocks, make configurable as part of
|
||||
// channel reservation.
|
||||
commitTx.TxIn[0].Sequence = lockTimeToSequence(false, csvTimeout)
|
||||
commitTx.AddTxOut(wire.NewTxOut(int64(amountToSelf), payToUsScriptHash))
|
||||
commitTx.AddTxOut(wire.NewTxOut(int64(amountToThem), payToThemScriptHash))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user