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

Function fundchannel_complete_dest

plugins/spender/multifundchannel.c:771–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769}
770
771static void
772fundchannel_complete_dest(struct multifundchannel_destination *dest)
773{
774 struct multifundchannel_command *mfc = dest->mfc;
775 struct command *cmd = mfc->cmd;
776 struct out_req *req;
777
778 plugin_log(mfc->cmd->plugin, LOG_DBG,
779 "mfc %"PRIu64", dest %u: fundchannel_complete %s.",
780 mfc->id, dest->index,
781 node_id_to_hexstr(tmpctx, &dest->id));
782
783 req = jsonrpc_request_start(cmd->plugin,
784 cmd,
785 "fundchannel_complete",
786 &fundchannel_complete_ok,
787 &fundchannel_complete_err,
788 dest);
789 json_add_node_id(req->js, "id", &dest->id);
790 json_add_psbt(req->js, "psbt", mfc->psbt);
791
792 send_outreq(cmd->plugin, req);
793}
794
795struct command_result *
796perform_fundchannel_complete(struct multifundchannel_command *mfc)

Callers 1

Calls 5

json_add_psbtFunction · 0.85
plugin_logFunction · 0.50
node_id_to_hexstrFunction · 0.50
json_add_node_idFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected