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

Function perform_multiconnect

plugins/spender/multifundchannel.c:1692–1707  ·  view source on GitHub ↗

Initiate the multiconnect. */

Source from the content-addressed store, hash-verified

1690
1691/* Initiate the multiconnect. */
1692static struct command_result *
1693perform_multiconnect(struct multifundchannel_command *mfc)
1694{
1695 unsigned int i;
1696
1697 plugin_log(mfc->cmd->plugin, LOG_DBG,
1698 "mfc %"PRIu64": multiconnect.", mfc->id);
1699
1700 mfc->pending = tal_count(mfc->destinations);
1701
1702 for (i = 0; i < tal_count(mfc->destinations); ++i)
1703 connect_dest(&mfc->destinations[i]);
1704
1705 assert(mfc->pending != 0);
1706 return command_still_pending(mfc->cmd);
1707}
1708
1709
1710/* Initiate the multifundchannel execution. */

Callers 1

perform_multifundchannelFunction · 0.85

Calls 3

connect_destFunction · 0.85
plugin_logFunction · 0.50
command_still_pendingFunction · 0.50

Tested by

no test coverage detected