Skip to content

Commit a682181

Browse files
committed
f correct comment
1 parent 9524120 commit a682181

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/routing/router.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1698,9 +1698,8 @@ where L::Target: Logger {
16981698
});
16991699
let expensive_payment_path = selected_route.first_mut().unwrap();
17001700

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.
1701+
// We already dropped all the paths with value below `overpaid_value_msat` above, thus this
1702+
// can't go negative.
17041703
let expensive_path_new_value_msat = expensive_payment_path.get_value_msat() - overpaid_value_msat;
17051704
expensive_payment_path.update_value_and_recompute_fees(expensive_path_new_value_msat);
17061705
}

0 commit comments

Comments
 (0)