Generally only one side gets marked disabled, but it's disabled. */
| 20 | |
| 21 | /* Generally only one side gets marked disabled, but it's disabled. */ |
| 22 | bool route_can_carry(const struct gossmap *map, |
| 23 | const struct gossmap_chan *c, |
| 24 | int dir, |
| 25 | struct amount_msat amount, |
| 26 | void *arg) |
| 27 | { |
| 28 | if (!c->half[dir].enabled) |
| 29 | return false; |
| 30 | return route_can_carry_even_disabled(map, c, dir, amount, arg); |
| 31 | } |
| 32 | |
| 33 | /* Squeeze total costs into a u32 */ |
| 34 | static u32 costs_to_score(struct amount_msat cost, |
no test coverage detected