From ed60e9ee577c50e002de689f2552b42af564fdaf Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 1 Dec 2017 13:56:19 +1030 Subject: [PATCH] close_tx: use version 2. As per the pending spec change: the other implementations use version 2, and the current best practice advice (from maaku) is to use the latest defined tx version. Signed-off-by: Rusty Russell --- common/close_tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/close_tx.c b/common/close_tx.c index 27e4f15f3..d13f08f75 100644 --- a/common/close_tx.c +++ b/common/close_tx.c @@ -24,13 +24,12 @@ struct bitcoin_tx *create_close_tx(const tal_t *ctx, * * Note that there are two possible variants for each node. * - * * version: 1 + * * version: 2 * * locktime: 0 * * txin count: 1 */ /* Now create close tx: one input, two outputs. */ tx = bitcoin_tx(ctx, 1, 2); - tx->version = 1; /* Our input spends the anchor tx output. */ tx->input[0].txid = *anchor_txid;