From 5c868fa4a58eee1f9e6cd6368cc59c641a740c25 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 4 Oct 2024 14:14:35 +0200 Subject: [PATCH] fixup! pay: Switch to msat for total_capacity --- common/route.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/route.c b/common/route.c index ea4ea1015c11..b699742abe90 100644 --- a/common/route.c +++ b/common/route.c @@ -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;