We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cmp::min
final_value_msat
1 parent 98c9849 commit dbad082Copy full SHA for dbad082
lightning/src/ln/outbound_payment.rs
@@ -1389,8 +1389,7 @@ impl OutboundPayments {
1389
1390
// We calculate the remaining target amount by subtracting the succeded
1391
// 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
+ route_params.final_value_msat = route_params.final_value_msat
1394
.saturating_sub(total_ok_amt_sent_msat);
1395
Some(route_params)
1396
} else { None }
0 commit comments