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

Function gossmap_node_byidx

common/gossmap.c:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214struct gossmap_node *gossmap_node_byidx(const struct gossmap *map, u32 idx)
215{
216 assert(idx < gossmap_max_node_idx(map));
217 if (map->node_arr[idx].chan_idxs == NULL)
218 return NULL;
219 return &map->node_arr[idx];
220}
221
222struct gossmap_chan *gossmap_chan_byidx(const struct gossmap *map, u32 idx)
223{

Callers 3

get_unannounced_nodesFunction · 0.85
find_path_or_cycleFunction · 0.85
find_positive_balanceFunction · 0.85

Calls 1

gossmap_max_node_idxFunction · 0.85

Tested by

no test coverage detected