Skip to content

Commit

Permalink
f ?
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 18, 2024
1 parent 99e7411 commit 6a77ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/routing/scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ mod bucketed_history {
bucket_weight *= bucket_weight;
let bucket_prob_times_billion =
bucket_weight * 1024 * 1024 * 1024 / total_valid_points_tracked;
debug_assert!(bucket_prob_times_billion <= 1 << 30)
debug_assert!(bucket_prob_times_billion <= 1 << 30);
cumulative_success_prob_times_billion += (bucket_prob_times_billion as u64) *
numerator / denominator;
}
Expand All @@ -1955,7 +1955,7 @@ mod bucketed_history {
bucket_weight *= bucket_weight;
let bucket_prob_times_billion =
bucket_weight * 1024 * 1024 * 1024 / total_valid_points_tracked;
debug_assert!(bucket_prob_times_billion <= 1 << 30)
debug_assert!(bucket_prob_times_billion <= 1 << 30);
if payment_pos >= max_bucket_end_pos {
// Success probability 0, the payment amount may be above the max liquidity
break;
Expand Down

0 comments on commit 6a77ced

Please sign in to comment.