| 6 | #include <common/route.h> |
| 7 | |
| 8 | bool route_can_carry_even_disabled(const struct gossmap *map, |
| 9 | const struct gossmap_chan *c, |
| 10 | int dir, |
| 11 | struct amount_msat amount, |
| 12 | void *unused) |
| 13 | { |
| 14 | if (!gossmap_chan_set(c, dir)) |
| 15 | return false; |
| 16 | if (!gossmap_chan_capacity(c, dir, amount)) |
| 17 | return false; |
| 18 | return true; |
| 19 | } |
| 20 | |
| 21 | /* Generally only one side gets marked disabled, but it's disabled. */ |
| 22 | bool route_can_carry(const struct gossmap *map, |