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

Function gossmap_find_chan

common/gossmap.c:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244struct gossmap_chan *gossmap_find_chan(const struct gossmap *map,
245 const struct short_channel_id *scid)
246{
247 ptrint_t *pi = chanidx_htable_get(&map->channels, *scid);
248 if (pi)
249 return ptrint2chan(pi);
250 return NULL;
251}
252
253static u32 init_node_arr(struct gossmap_node *node_arr, size_t start)
254{

Callers 11

add_channelFunction · 0.85
update_channelFunction · 0.85
gossmap_apply_localmodsFunction · 0.85
gossmap_remove_localmodsFunction · 0.85
mainFunction · 0.85
channel_is_betweenFunction · 0.85
channel_is_betweenFunction · 0.85
mainFunction · 0.85
listpeers_doneFunction · 0.85
measure_least_costFunction · 0.85

Calls 1

ptrint2chanFunction · 0.85

Tested by 4

mainFunction · 0.68
channel_is_betweenFunction · 0.68
channel_is_betweenFunction · 0.68
mainFunction · 0.68