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

Function perform_openchannel_signed

plugins/spender/openchannel.c:461–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461struct command_result *
462perform_openchannel_signed(struct multifundchannel_command *mfc)
463{
464 plugin_log(mfc->cmd->plugin, LOG_DBG,
465 "mfc %"PRIu64": parallel `openchannel_signed`.",
466 mfc->id);
467
468 mfc->pending = dest_count(mfc, OPEN_CHANNEL);
469 for (size_t i = 0; i < tal_count(mfc->destinations); i++) {
470 if (!is_v2(&mfc->destinations[i]))
471 continue;
472 /* We need to 'port' all of the sigs down to the
473 * destination PSBTs */
474 update_node_psbt(mfc, mfc->psbt,
475 &mfc->destinations[i].psbt);
476 openchannel_signed_dest(&mfc->destinations[i]);
477 }
478
479 assert(mfc->pending != 0);
480 return command_still_pending(mfc->cmd);
481}
482
483static struct command_result *
484collect_sigs(struct multifundchannel_command *mfc)

Callers 1

after_signpsbtFunction · 0.85

Calls 6

dest_countFunction · 0.85
is_v2Function · 0.85
update_node_psbtFunction · 0.85
openchannel_signed_destFunction · 0.85
plugin_logFunction · 0.50
command_still_pendingFunction · 0.50

Tested by

no test coverage detected