Skip to content

Commit

Permalink
f?
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 15, 2024
1 parent 59a8e5d commit e1a274e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/routing/scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ let mut add_datapoint = |min: u32, max: u32, weight: f64| {
} else {
success_probability(amount_msat, min, max, capacity_msat, params, true)
};
assert!(numerator <= denominator);
assert!(numerator <= denominator, "amt {}, min {}, max {}, cap {}: prob {}/{}", amount_msat, min, max, capacity_msat, numerator, denominator);
sum_prob += weight * weight * (numerator as f64) / (denominator as f64);
sum_count += weight * weight;
};
Expand Down

0 comments on commit e1a274e

Please sign in to comment.