Helper function. * Given node idx `node` and `arc`, returns the idx of the next arc whose tail is `node`. */
| 436 | /* Helper function. |
| 437 | * Given node idx `node` and `arc`, returns the idx of the next arc whose tail is `node`. */ |
| 438 | static struct arc node_adjacency_next( |
| 439 | const struct linear_network *linear_network, |
| 440 | const struct arc arc) |
| 441 | { |
| 442 | assert(arc.idx < tal_count(linear_network->node_adjacency_next_arc)); |
| 443 | return linear_network->node_adjacency_next_arc[arc.idx]; |
| 444 | } |
| 445 | |
| 446 | static bool channel_is_available(const struct gossmap_chan *c, int dir, |
| 447 | const struct gossmap *gossmap, |
no outgoing calls
no test coverage detected