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

Function route_from_dijkstra

common/route.c:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

mainFunction · 0.85
mainFunction · 0.85
path_to_nodeFunction · 0.85
routeFunction · 0.85
json_getrouteFunction · 0.85
least_costFunction · 0.85
measure_least_costFunction · 0.85

Calls 2

dijkstra_to_hopsFunction · 0.85
tal_freeFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68