From 0ce4fb12947785d516661d1498f17d3376ca125a Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 18 Jan 2016 21:35:44 -0800 Subject: [PATCH] lnwallet: properly set transaction version on commit txs --- lnwallet/channel.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 146d1804..72e51762 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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 - // 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.Version = 2 commitTx.AddTxIn(fundingOutput) // TODO(roasbeef): we default to blocks, make configurable as part of // channel reservation.