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

Function gossmap_find_chan

common/gossmap.c:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270struct gossmap_chan *gossmap_find_chan(const struct gossmap *map,
271 const struct short_channel_id *scid)
272{
273 ptrint_t *pi = chanidx_htable_get(map->channels, *scid);
274 if (pi)
275 return ptrint2chan(pi);
276 return NULL;
277}
278
279static u32 init_node_arr(struct gossmap_node *node_arr, size_t start)
280{

Callers 15

process_channel_updateFunction · 0.85
kill_spent_channelFunction · 0.85
get_unannounced_nodesFunction · 0.85
nodeannounce_query_doneFunction · 0.85
process_scid_probeFunction · 0.85
add_channelFunction · 0.85
update_channelFunction · 0.85

Calls 1

ptrint2chanFunction · 0.85

Tested by 9

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