FIXME: This is slow! */
| 614 | |
| 615 | /* FIXME: This is slow! */ |
| 616 | static const struct channel_hint *find_hint(const struct channel_hint *hints, |
| 617 | const struct short_channel_id *scid, |
| 618 | int dir) |
| 619 | { |
| 620 | for (size_t i = 0; i < tal_count(hints); i++) { |
| 621 | if (short_channel_id_eq(scid, &hints[i].scid.scid) |
| 622 | && dir == hints[i].scid.dir) |
| 623 | return &hints[i]; |
| 624 | } |
| 625 | return NULL; |
| 626 | } |
| 627 | |
| 628 | /* FIXME: This is slow! */ |
| 629 | static bool dst_is_excluded(const struct gossmap *gossmap, |
no outgoing calls
no test coverage detected