From a06f0dfeb1bc9275f5a861ed1516e5ee077abfbf Mon Sep 17 00:00:00 2001 From: "ZmnSCPxj, ZmnSCPxj jxPCSmnZ" Date: Wed, 17 Jan 2018 15:29:29 +0800 Subject: [PATCH] Make `fundchannel` return txid too For voyeurism. Fixes: #402 --- lightningd/peer_control.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 2c7baddd2..55dcd28e4 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1538,6 +1538,7 @@ static void opening_got_hsm_funding_sig(struct funding_channel *fc, json_object_start(response, NULL); linear = linearize_tx(response, tx); json_add_hex(response, "tx", linear, tal_len(linear)); + json_add_txid(response, "txid", fc->peer->funding_txid); json_object_end(response); command_success(fc->peer->opening_cmd, response); fc->peer->opening_cmd = NULL;