Skip to content

Commit

Permalink
fixup! pay: Switch to msat for total_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Oct 4, 2024
1 parent 3fc5687 commit 5c868fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions common/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ static bool dijkstra_to_hops(struct route_hop **hops,
if (!dijkstra_to_hops(hops, gossmap, dij, next, amount, cltv))
return false;

gossmap_chan_get_capacity(gossmap, c, &total_sat);
if (! amount_sat_to_msat(&total_msat, total_sat))
abort();

total_msat = gossmap_chan_get_capacity(gossmap, c);
(*hops)[num_hops].capacity = total_msat;
(*hops)[num_hops].amount = *amount;
(*hops)[num_hops].delay = *cltv;
Expand Down

0 comments on commit 5c868fa

Please sign in to comment.