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

Function mfc_cleanup_fc

plugins/spender/multifundchannel.c:223–236  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

221the node.
222*/
223static void
224mfc_cleanup_fc(struct command *cmd,
225 struct multifundchannel_cleanup *cleanup,
226 struct multifundchannel_destination *dest)
227{
228 struct out_req *req = jsonrpc_request_start(cmd,
229 "fundchannel_cancel",
230 &mfc_cleanup_done,
231 &mfc_cleanup_done,
232 cleanup);
233 json_add_node_id(req->js, "id", &dest->id);
234
235 send_outreq(req);
236}
237
238/* Core cleanup function. */
239static struct command_result *

Callers 1

mfc_cleanup_Function · 0.85

Calls 2

json_add_node_idFunction · 0.85
send_outreqFunction · 0.50

Tested by

no test coverage detected