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