| 1796 | } |
| 1797 | |
| 1798 | static enum payment_step payment_aggregate_states(struct payment *p) |
| 1799 | { |
| 1800 | enum payment_step agg = p->step; |
| 1801 | |
| 1802 | for (size_t i=0; i<tal_count(p->children); i++) |
| 1803 | agg |= payment_aggregate_states(p->children[i]); |
| 1804 | |
| 1805 | return agg; |
| 1806 | } |
| 1807 | |
| 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. */ |
no outgoing calls
no test coverage detected