MCPcopy Create free account
hub / github.com/ElementsProject/lightning / openchannel_update_dest

Function openchannel_update_dest

plugins/spender/openchannel.c:768–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768static void
769openchannel_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
794struct command_result *
795perform_openchannel_update(struct multifundchannel_command *mfc)

Callers 1

Calls 6

json_add_psbtFunction · 0.85
plugin_logFunction · 0.50
node_id_to_hexstrFunction · 0.50
type_to_stringClass · 0.50
json_add_channel_idFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected