Skip to content

Commit 60c40fe

Browse files
committed
f clarify comment
1 parent 4e161b9 commit 60c40fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ where L::Target: Logger {
16521652

16531653
// First, sort by the cost-per-value of the path, dropping the paths which cost the most for
16541654
// the value they contribute towards the payment amount.
1655-
// We sort backwards as we will remove from the front in `retain`, next.
1655+
// We sort in descending order as we will remove from the front in `retain`, next.
16561656
selected_route.sort_unstable_by(|a, b|
16571657
(((b.get_cost_msat() as u128) << 64) / (b.get_value_msat() as u128))
16581658
.cmp(&(((a.get_cost_msat() as u128) << 64) / (a.get_value_msat() as u128)))

0 commit comments

Comments
 (0)