We ignore capacity constraints */
| 13 | |
| 14 | /* We ignore capacity constraints */ |
| 15 | static bool channel_usable(const struct gossmap *map, |
| 16 | const struct gossmap_chan *c, |
| 17 | int dir, |
| 18 | struct amount_msat amount, |
| 19 | void *unused) |
| 20 | { |
| 21 | if (!gossmap_chan_set(c, dir)) |
| 22 | return false; |
| 23 | if (!c->half[dir].enabled) |
| 24 | return false; |
| 25 | return true; |
| 26 | } |
| 27 | |
| 28 | /* Note: dijkstra() sets dir to the neighbor side; i.e. c->half[dir].node_idx is the |
| 29 | * neighbor. */ |
no test coverage detected