Function to bubble up completions to the root, which actually holds on to * the command that initiated the flow. */
| 2050 | /* Function to bubble up completions to the root, which actually holds on to |
| 2051 | * the command that initiated the flow. */ |
| 2052 | static 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 | |
| 2062 | static void payment_add_attempt(struct json_stream *s, const char *fieldname, struct payment *p, bool recurse) |
| 2063 | { |
no test coverage detected