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

Function gossmap_find_chan

common/gossmap.c:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

make_reply_channel_rangeFunction · 0.85
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

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