We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9524120 commit a682181Copy full SHA for a682181
lightning/src/routing/router.rs
@@ -1698,9 +1698,8 @@ where L::Target: Logger {
1698
});
1699
let expensive_payment_path = selected_route.first_mut().unwrap();
1700
1701
- // We already dropped all the small value paths above, meaning all the
1702
- // remaining paths are larger than remaining overpaid_value_msat.
1703
- // 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.
1704
let expensive_path_new_value_msat = expensive_payment_path.get_value_msat() - overpaid_value_msat;
1705
expensive_payment_path.update_value_and_recompute_fees(expensive_path_new_value_msat);
1706
}
0 commit comments