FIXME: pass a pointer to const here */
| 179 | |
| 180 | /* FIXME: pass a pointer to const here */ |
| 181 | size_t flowset_size(struct flow **flows) |
| 182 | { |
| 183 | size_t size = 0; |
| 184 | for (size_t i = 0; i < tal_count(flows); i++) |
| 185 | size += tal_count(flows[i]->path); |
| 186 | return size; |
| 187 | } |
| 188 | |
| 189 | /* Checks if the flows satisfy the liquidity bounds imposed by the known maximum |
| 190 | * liquidity and pending HTLCs. |