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