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

Function payment_child_finished

plugins/libplugin-pay.c:2068–2076  ·  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

2066/* Function to bubble up completions to the root, which actually holds on to
2067 * the command that initiated the flow. */
2068static struct command_result *payment_child_finished(struct payment *p,
2069 struct payment *child)
2070{
2071 if (!payment_is_finished(p))
2072 return command_still_pending(payment_cmd(p));
2073
2074 /* Should we continue bubbling up? */
2075 return payment_finished(p);
2076}
2077
2078static void payment_add_attempt(struct json_stream *s, const char *fieldname, struct payment *p, bool recurse)
2079{

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