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

Function payment_child_finished

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

1815/* Function to bubble up completions to the root, which actually holds on to
1816 * the command that initiated the flow. */
1817static void payment_child_finished(struct payment *p,
1818 struct payment *child)
1819{
1820 if (!payment_is_finished(p))
1821 return;
1822
1823 /* Should we continue bubbling up? */
1824 payment_finished(p);
1825}
1826
1827static void payment_add_attempt(struct json_stream *s, const char *fieldname, struct payment *p, bool recurse)
1828{

Callers 1

payment_finishedFunction · 0.85

Calls 2

payment_is_finishedFunction · 0.85
payment_finishedFunction · 0.85

Tested by

no test coverage detected