dual-open,openchannel_update: include the index of the funding output

This allows us to do correct reporting via multiopenchannel :)
This commit is contained in:
niftynei 2020-10-12 16:00:16 -05:00 committed by Rusty Russell
parent 9d412718df
commit c6d4bd676f

View File

@ -887,6 +887,8 @@ static void opener_commit_received(struct subd *dualopend,
type_to_string(tmpctx, struct channel_id, &cid)); type_to_string(tmpctx, struct channel_id, &cid));
json_add_psbt(response, "psbt", psbt); json_add_psbt(response, "psbt", psbt);
json_add_bool(response, "commitments_secured", true); 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)); was_pending(command_success(uc->fc->cmd, response));
/* Now that we've got the final PSBT, save it */ /* Now that we've got the final PSBT, save it */