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

Function cleanup

plugins/xpay/xpay.c:336–348  ·  view source on GitHub ↗

Last of all we destroy the private layer */

Source from the content-addressed store, hash-verified

334
335/* Last of all we destroy the private layer */
336static struct command_result *cleanup(struct command *aux_cmd,
337 struct payment *payment)
338{
339 struct out_req *req;
340
341 req = jsonrpc_request_start(aux_cmd,
342 "askrene-remove-layer",
343 cleanup_finished,
344 cleanup_finished,
345 payment);
346 json_add_string(req->js, "layer", payment->private_layer);
347 return send_outreq(req);
348}
349
350/* Last request finished after xpay command is done gets to clean up */
351static void destroy_payment_request(struct out_req *req,

Callers 2

destroy_payment_requestFunction · 0.85
payment_give_upFunction · 0.85

Calls 2

json_add_stringFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected