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

Function gossmap_node_byidx

common/gossmap.c:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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