| 262 | } |
| 263 | |
| 264 | struct gossmap_node *gossmap_find_node(const struct gossmap *map, |
| 265 | const struct node_id *id) |
| 266 | { |
| 267 | ptrint_t *pi = nodeidx_htable_get(map->nodes, *id); |
| 268 | if (pi) |
| 269 | return ptrint2node(pi); |
| 270 | return NULL; |
| 271 | } |
| 272 | |
| 273 | struct gossmap_chan *gossmap_find_chan(const struct gossmap *map, |
| 274 | const struct short_channel_id *scid) |