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

Function mfc_cleanup_fc

plugins/spender/multifundchannel.c:216–230  ·  view source on GitHub ↗

Cleans up a `fundchannel_start` by doing `fundchannel_cancel` on the node. */

Source from the content-addressed store, hash-verified

214the node.
215*/
216static void
217mfc_cleanup_fc(struct command *cmd,
218 struct multifundchannel_cleanup *cleanup,
219 struct multifundchannel_destination *dest)
220{
221 struct out_req *req = jsonrpc_request_start(cmd->plugin,
222 cmd,
223 "fundchannel_cancel",
224 &mfc_cleanup_done,
225 &mfc_cleanup_done,
226 cleanup);
227 json_add_node_id(req->js, "id", &dest->id);
228
229 send_outreq(cmd->plugin, req);
230}
231
232/* Core cleanup function. */
233static struct command_result *

Callers 1

mfc_cleanup_Function · 0.85

Calls 2

json_add_node_idFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected