MCPcopy Create free account
hub / github.com/ElementsProject/lightning / gossmap_node_byidx

Function gossmap_node_byidx

common/gossmap.c:185–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185struct gossmap_node *gossmap_node_byidx(const struct gossmap *map, u32 idx)
186{
187 assert(idx < gossmap_max_node_idx(map));
188 if (map->node_arr[idx].chan_idxs == NULL)
189 return NULL;
190 return &map->node_arr[idx];
191}
192
193struct gossmap_chan *gossmap_chan_byidx(const struct gossmap *map, u32 idx)
194{

Callers

nothing calls this directly

Calls 1

gossmap_max_node_idxFunction · 0.85

Tested by

no test coverage detected