| 271 | } |
| 272 | |
| 273 | struct gossmap_chan *gossmap_find_chan(const struct gossmap *map, |
| 274 | const struct short_channel_id *scid) |
| 275 | { |
| 276 | ptrint_t *pi = chanidx_htable_get(map->channels, *scid); |
| 277 | if (pi) |
| 278 | return ptrint2chan(pi); |
| 279 | return NULL; |
| 280 | } |
| 281 | |
| 282 | static u32 init_node_arr(struct gossmap_node *node_arr, size_t start) |
| 283 | { |