| 233 | } |
| 234 | |
| 235 | struct gossmap_node *gossmap_find_node(const struct gossmap *map, |
| 236 | const struct node_id *id) |
| 237 | { |
| 238 | ptrint_t *pi = nodeidx_htable_get(&map->nodes, *id); |
| 239 | if (pi) |
| 240 | return ptrint2node(pi); |
| 241 | return NULL; |
| 242 | } |
| 243 | |
| 244 | struct gossmap_chan *gossmap_find_chan(const struct gossmap *map, |
| 245 | const struct short_channel_id *scid) |