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

Function get_scidd

plugins/askrene/child/refine.c:19–26  ·  view source on GitHub ↗

Get the scidd for the i'th hop in flow */

Source from the content-addressed store, hash-verified

17
18/* Get the scidd for the i'th hop in flow */
19static void get_scidd(const struct gossmap *gossmap,
20 const struct flow *flow,
21 size_t i,
22 struct short_channel_id_dir *scidd)
23{
24 scidd->scid = gossmap_chan_scid(gossmap, flow->path[i]);
25 scidd->dir = flow->dirs[i];
26}
27
28static void destroy_reservations(struct reserve_hop *rhops, struct reserve_htable *reserved)
29{

Callers 4

create_flow_reservationsFunction · 0.70
remove_bottleneckFunction · 0.70

Calls 1

gossmap_chan_scidFunction · 0.85

Tested by

no test coverage detected