Skip to content

Commit dbad082

Browse files
committed
f Drop the cmp::min and just deduct from prev final_value_msat
1 parent 98c9849 commit dbad082

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,7 @@ impl OutboundPayments {
13891389

13901390
// We calculate the remaining target amount by subtracting the succeded
13911391
// path values.
1392-
let final_value_msat = core::cmp::min(route_params.final_value_msat, route.get_total_amount());
1393-
route_params.final_value_msat = final_value_msat
1392+
route_params.final_value_msat = route_params.final_value_msat
13941393
.saturating_sub(total_ok_amt_sent_msat);
13951394
Some(route_params)
13961395
} else { None }

0 commit comments

Comments
 (0)