We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60c40fe commit 7248ad4Copy full SHA for 7248ad4
lightning/src/routing/router.rs
@@ -1687,9 +1687,8 @@ where L::Target: Logger {
1687
});
1688
let expensive_payment_path = selected_route.first_mut().unwrap();
1689
1690
- // We already dropped all the small value paths above, meaning all the
1691
- // remaining paths are larger than remaining overpaid_value_msat.
1692
- // Thus, this can't be negative.
+ // We already dropped all the paths with value below `overpaid_value_msat` above, thus this
+ // can't go negative.
1693
let expensive_path_new_value_msat = expensive_payment_path.get_value_msat() - overpaid_value_msat;
1694
expensive_payment_path.update_value_and_recompute_fees(expensive_path_new_value_msat);
1695
}
0 commit comments