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

Function payment_child_finished

plugins/libplugin-pay.c:2052–2060  ·  view source on GitHub ↗

Function to bubble up completions to the root, which actually holds on to * the command that initiated the flow. */

Source from the content-addressed store, hash-verified

2050/* Function to bubble up completions to the root, which actually holds on to
2051 * the command that initiated the flow. */
2052static struct command_result *payment_child_finished(struct payment *p,
2053 struct payment *child)
2054{
2055 if (!payment_is_finished(p))
2056 return command_still_pending(payment_cmd(p));
2057
2058 /* Should we continue bubbling up? */
2059 return payment_finished(p);
2060}
2061
2062static void payment_add_attempt(struct json_stream *s, const char *fieldname, struct payment *p, bool recurse)
2063{

Callers 1

payment_finishedFunction · 0.85

Calls 4

payment_is_finishedFunction · 0.85
payment_cmdFunction · 0.85
payment_finishedFunction · 0.85
command_still_pendingFunction · 0.70

Tested by

no test coverage detected