We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e161b9 commit 60c40feCopy full SHA for 60c40fe
lightning/src/routing/router.rs
@@ -1652,7 +1652,7 @@ where L::Target: Logger {
1652
1653
// First, sort by the cost-per-value of the path, dropping the paths which cost the most for
1654
// the value they contribute towards the payment amount.
1655
- // We sort backwards as we will remove from the front in `retain`, next.
+ // We sort in descending order as we will remove from the front in `retain`, next.
1656
selected_route.sort_unstable_by(|a, b|
1657
(((b.get_cost_msat() as u128) << 64) / (b.get_value_msat() as u128))
1658
.cmp(&(((a.get_cost_msat() as u128) << 64) / (a.get_value_msat() as u128)))
0 commit comments