mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
route: return NULL if destination is unreachable.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -69,7 +69,7 @@ static struct route **least_cost(struct gossmap *map,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
path = route_from_dijkstra(map, dij, src);
|
||||
path = route_from_dijkstra(map, map, dij, src);
|
||||
printf("# path length %zu\n", tal_count(path));
|
||||
/* We don't pay fee on first hop! */
|
||||
if (!amount_msat_sub(&fee,
|
||||
|
||||
Reference in New Issue
Block a user