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

Function gossmap_chan_idx

common/gossmap.c:179–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179u32 gossmap_chan_idx(const struct gossmap *map, const struct gossmap_chan *chan)
180{
181 assert(chan - map->chan_arr < map->num_chan_arr);
182 return chan - map->chan_arr;
183}
184
185struct gossmap_node *gossmap_node_byidx(const struct gossmap *map, u32 idx)
186{

Callers 2

new_channelFunction · 0.85
gossmap_remove_chanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected