A payment is finished if a) it is in a final state, of b) it's in a * child-spawning state and all of its children are in a final state. */
| 1808 | /* A payment is finished if a) it is in a final state, of b) it's in a |
| 1809 | * child-spawning state and all of its children are in a final state. */ |
| 1810 | static bool payment_is_success(struct payment *p) |
| 1811 | { |
| 1812 | return (payment_aggregate_states(p) & PAYMENT_STEP_SUCCESS) != 0; |
| 1813 | } |
| 1814 | |
| 1815 | /* Function to bubble up completions to the root, which actually holds on to |
| 1816 | * the command that initiated the flow. */ |
no test coverage detected