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

Function route_from_dijkstra

common/route.c:121–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121struct route_hop *route_from_dijkstra(const tal_t *ctx,
122 const struct gossmap *map,
123 const struct dijkstra *dij,
124 const struct gossmap_node *src,
125 struct amount_msat final_amount,
126 u32 final_cltv)
127{
128 struct route_hop *hops = tal_arr(ctx, struct route_hop, 0);
129
130 if (!dijkstra_to_hops(&hops, map, dij, src, &final_amount, &final_cltv))
131 return tal_free(hops);
132
133 return hops;
134}

Callers 10

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
path_to_nodeFunction · 0.85
routeFunction · 0.85
try_routeFunction · 0.85
explain_failureFunction · 0.85
least_costFunction · 0.85
measure_least_costFunction · 0.85

Calls 2

dijkstra_to_hopsFunction · 0.85
tal_freeFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68