How much do we deliver to destination using this set of routes */
| 167 | |
| 168 | /* How much do we deliver to destination using this set of routes */ |
| 169 | bool flowset_delivers(struct amount_msat *delivers, struct flow **flows) |
| 170 | { |
| 171 | struct amount_msat final = AMOUNT_MSAT(0); |
| 172 | for (size_t i = 0; i < tal_count(flows); i++) { |
| 173 | if (!amount_msat_accumulate(&final, flows[i]->amount)) |
| 174 | return false; |
| 175 | } |
| 176 | *delivers = final; |
| 177 | return true; |
| 178 | } |
| 179 | |
| 180 | /* FIXME: pass a pointer to const here */ |
| 181 | size_t flowset_size(struct flow **flows) |
nothing calls this directly
no test coverage detected