lnwallet: properly set transaction version on commit txs
This commit is contained in:
parent
10bcaeccc8
commit
0ce4fb1294
@ -590,8 +590,10 @@ func createCommitTx(fundingOutput *wire.TxIn, selfKey, theirKey *btcec.PublicKey
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now that both output scripts have been created, we can finally create
|
// Now that both output scripts have been created, we can finally create
|
||||||
// the transaction itself.
|
// the transaction itself. We use a transaction version of 2 since CSV
|
||||||
|
// will fail unless the tx version is >= 2.
|
||||||
commitTx := wire.NewMsgTx()
|
commitTx := wire.NewMsgTx()
|
||||||
|
commitTx.Version = 2
|
||||||
commitTx.AddTxIn(fundingOutput)
|
commitTx.AddTxIn(fundingOutput)
|
||||||
// TODO(roasbeef): we default to blocks, make configurable as part of
|
// TODO(roasbeef): we default to blocks, make configurable as part of
|
||||||
// channel reservation.
|
// channel reservation.
|
||||||
|
Loading…
Reference in New Issue
Block a user