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

Function openchannel_signed_dest

plugins/spender/openchannel.c:423–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423static void
424openchannel_signed_dest(struct multifundchannel_destination *dest)
425{
426 struct multifundchannel_command *mfc = dest->mfc;
427 struct command *cmd = mfc->cmd;
428 struct out_req *req;
429
430 plugin_log(cmd->plugin, LOG_DBG,
431 "mfc %"PRIu64", dest %u: `openchannel_signed` %s "
432 "psbt %s",
433 mfc->id, dest->index,
434 type_to_string(tmpctx, struct channel_id, &dest->channel_id),
435 type_to_string(tmpctx, struct wally_psbt, dest->psbt));
436
437 req = jsonrpc_request_start(cmd->plugin,
438 cmd,
439 "openchannel_signed",
440 &openchannel_signed_ok,
441 &openchannel_signed_err,
442 dest);
443 json_add_channel_id(req->js, "channel_id", &dest->channel_id);
444 json_add_psbt(req->js, "signed_psbt", dest->psbt);
445
446 send_outreq(cmd->plugin, req);
447}
448
449struct command_result *
450perform_openchannel_signed(struct multifundchannel_command *mfc)

Callers 1

Calls 5

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

Tested by

no test coverage detected