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

Function mfc_cleanup_oc

plugins/spender/multifundchannel.c:198–211  ·  view source on GitHub ↗

Cleans up a `openchannel_init` by doing `openchannel_abort` for the channel*/

Source from the content-addressed store, hash-verified

196
197/* Cleans up a `openchannel_init` by doing `openchannel_abort` for the channel*/
198static void
199mfc_cleanup_oc(struct command *cmd,
200 struct multifundchannel_cleanup *cleanup,
201 struct multifundchannel_destination *dest)
202{
203 struct out_req *req = jsonrpc_request_start(cmd->plugin,
204 cmd,
205 "openchannel_abort",
206 &mfc_cleanup_done,
207 &mfc_cleanup_done,
208 cleanup);
209 json_add_channel_id(req->js, "channel_id", &dest->channel_id);
210 send_outreq(cmd->plugin, req);
211}
212
213/* Cleans up a `fundchannel_start` by doing `fundchannel_cancel` on
214the node.

Callers 1

mfc_cleanup_Function · 0.85

Calls 2

json_add_channel_idFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected