Return true (and set shortage) if flow doesn't deliver this much */
| 434 | |
| 435 | /* Return true (and set shortage) if flow doesn't deliver this much */ |
| 436 | static bool flows_short(struct flow **flows, |
| 437 | struct amount_msat deliver, |
| 438 | struct amount_msat *shortage) |
| 439 | { |
| 440 | return amount_msat_sub(shortage, deliver, sum_all_deliver(flows)) |
| 441 | && !amount_msat_is_zero(*shortage); |
| 442 | } |
| 443 | |
| 444 | /* It increases the flows to meet the deliver target. It does not increase any |
| 445 | * flow beyond the tolerance fraction (unless negative). |
no test coverage detected