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