| 766 | } |
| 767 | |
| 768 | static void |
| 769 | openchannel_update_dest(struct multifundchannel_destination *dest) |
| 770 | { |
| 771 | struct multifundchannel_command *mfc = dest->mfc; |
| 772 | struct command *cmd = mfc->cmd; |
| 773 | struct out_req *req; |
| 774 | |
| 775 | plugin_log(cmd->plugin, LOG_DBG, |
| 776 | "mfc %"PRIu64", dest %u: `openchannel_update` %s " |
| 777 | "with psbt %s", |
| 778 | mfc->id, dest->index, |
| 779 | node_id_to_hexstr(tmpctx, &dest->id), |
| 780 | type_to_string(tmpctx, struct wally_psbt, dest->psbt)); |
| 781 | |
| 782 | req = jsonrpc_request_start(cmd->plugin, |
| 783 | cmd, |
| 784 | "openchannel_update", |
| 785 | &openchannel_update_ok, |
| 786 | &openchannel_update_err, |
| 787 | dest); |
| 788 | json_add_channel_id(req->js, "channel_id", &dest->channel_id); |
| 789 | json_add_psbt(req->js, "psbt", dest->psbt); |
| 790 | |
| 791 | send_outreq(cmd->plugin, req); |
| 792 | } |
| 793 | |
| 794 | struct command_result * |
| 795 | perform_openchannel_update(struct multifundchannel_command *mfc) |
no test coverage detected