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

Function openchannel_signed_dest

plugins/spender/openchannel.c:436–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436static void
437openchannel_signed_dest(struct multifundchannel_destination *dest)
438{
439 struct multifundchannel_command *mfc = dest->mfc;
440 struct command *cmd = mfc->cmd;
441 struct out_req *req;
442
443 plugin_log(cmd->plugin, LOG_DBG,
444 "mfc %"PRIu64", dest %u: `openchannel_signed` %s "
445 "psbt %s",
446 mfc->id, dest->index,
447 fmt_channel_id(tmpctx, &dest->channel_id),
448 fmt_wally_psbt(tmpctx, dest->psbt));
449
450 req = jsonrpc_request_start(cmd,
451 "openchannel_signed",
452 &openchannel_signed_ok,
453 &openchannel_signed_err,
454 dest);
455 json_add_channel_id(req->js, "channel_id", &dest->channel_id);
456 json_add_psbt(req->js, "signed_psbt", dest->psbt);
457
458 send_outreq(req);
459}
460
461struct command_result *
462perform_openchannel_signed(struct multifundchannel_command *mfc)

Callers 1

Calls 6

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

Tested by

no test coverage detected