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

Function perform_multiconnect

plugins/spender/multifundchannel.c:1640–1655  ·  view source on GitHub ↗

Initiate the multiconnect. */

Source from the content-addressed store, hash-verified

1638
1639/* Initiate the multiconnect. */
1640static struct command_result *
1641perform_multiconnect(struct multifundchannel_command *mfc)
1642{
1643 unsigned int i;
1644
1645 plugin_log(mfc->cmd->plugin, LOG_DBG,
1646 "mfc %"PRIu64": multiconnect.", mfc->id);
1647
1648 mfc->pending = tal_count(mfc->destinations);
1649
1650 for (i = 0; i < tal_count(mfc->destinations); ++i)
1651 connect_dest(&mfc->destinations[i]);
1652
1653 assert(mfc->pending != 0);
1654 return command_still_pending(mfc->cmd);
1655}
1656
1657
1658/* Initiate the multifundchannel execution. */

Callers 2

perform_multifundchannelFunction · 0.85
json_multifundchannelFunction · 0.85

Calls 3

connect_destFunction · 0.85
plugin_logFunction · 0.50
command_still_pendingFunction · 0.50

Tested by

no test coverage detected