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

Function openchannel_update_dest

plugins/spender/openchannel.c:779–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779static void
780openchannel_update_dest(struct multifundchannel_destination *dest)
781{
782 struct multifundchannel_command *mfc = dest->mfc;
783 struct command *cmd = mfc->cmd;
784 struct out_req *req;
785
786 plugin_log(cmd->plugin, LOG_DBG,
787 "mfc %"PRIu64", dest %u: `openchannel_update` %s "
788 "with psbt %s",
789 mfc->id, dest->index,
790 fmt_node_id(tmpctx, &dest->id),
791 fmt_wally_psbt(tmpctx, dest->psbt));
792
793 req = jsonrpc_request_start(cmd,
794 "openchannel_update",
795 &openchannel_update_ok,
796 &openchannel_update_err,
797 dest);
798 json_add_channel_id(req->js, "channel_id", &dest->channel_id);
799 json_add_psbt(req->js, "psbt", dest->psbt);
800
801 send_outreq(req);
802}
803
804struct command_result *
805perform_openchannel_update(struct multifundchannel_command *mfc)

Callers 1

Calls 6

fmt_node_idFunction · 0.85
fmt_wally_psbtFunction · 0.85
json_add_channel_idFunction · 0.85
json_add_psbtFunction · 0.85
plugin_logFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected