From c6d4bd676fe5d5de4ee3b46eaddc40e53a95d029 Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 12 Oct 2020 16:00:16 -0500 Subject: [PATCH] dual-open,openchannel_update: include the index of the funding output This allows us to do correct reporting via multiopenchannel :) --- lightningd/dual_open_control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightningd/dual_open_control.c b/lightningd/dual_open_control.c index 963dad860..14612dc07 100644 --- a/lightningd/dual_open_control.c +++ b/lightningd/dual_open_control.c @@ -887,6 +887,8 @@ static void opener_commit_received(struct subd *dualopend, type_to_string(tmpctx, struct channel_id, &cid)); json_add_psbt(response, "psbt", psbt); json_add_bool(response, "commitments_secured", true); + /* For convenience sake, we include the funding outnum */ + json_add_num(response, "funding_outnum", funding_outnum); was_pending(command_success(uc->fc->cmd, response)); /* Now that we've got the final PSBT, save it */