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

Function gossmap_chan_idx

common/gossmap.c:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205u32 gossmap_chan_idx(const struct gossmap *map, const struct gossmap_chan *chan)
206{
207 assert(chan - map->chan_arr < map->num_chan_arr);
208 return chan - map->chan_arr;
209}
210
211struct gossmap_node *gossmap_node_byidx(const struct gossmap *map, u32 idx)
212{

Callers 15

new_channelFunction · 0.85
gossmap_remove_chanFunction · 0.85
layer_apply_biasesFunction · 0.85
get_capacitiesFunction · 0.85
add_reservationFunction · 0.85
remove_bottleneckFunction · 0.85
channel_is_availableFunction · 0.85
init_linear_networkFunction · 0.85
find_path_or_cycleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected