We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ddf4dd commit d6dfa17Copy full SHA for d6dfa17
lightning/src/routing/router.rs
@@ -1531,8 +1531,8 @@ where L::Target: Logger {
1531
// recompute the fees again, so that if that's the case, we match the currently
1532
// underpaid htlc_minimum_msat with fees.
1533
debug_assert_eq!(payment_path.get_value_msat(), value_contribution_msat);
1534
- payment_path.update_value_and_recompute_fees(cmp::min(value_contribution_msat, final_value_msat));
1535
value_contribution_msat = cmp::min(value_contribution_msat, final_value_msat);
+ payment_path.update_value_and_recompute_fees(value_contribution_msat);
1536
1537
// Since a path allows to transfer as much value as
1538
// the smallest channel it has ("bottleneck"), we should recompute
0 commit comments