| 242 | } |
| 243 | |
| 244 | struct gossmap_chan *gossmap_find_chan(const struct gossmap *map, |
| 245 | const struct short_channel_id *scid) |
| 246 | { |
| 247 | ptrint_t *pi = chanidx_htable_get(&map->channels, *scid); |
| 248 | if (pi) |
| 249 | return ptrint2chan(pi); |
| 250 | return NULL; |
| 251 | } |
| 252 | |
| 253 | static u32 init_node_arr(struct gossmap_node *node_arr, size_t start) |
| 254 | { |