Skip to content

Commit

Permalink
fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 18, 2024
1 parent b005ccb commit 4c8eb1e
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 @@ -1195,7 +1195,7 @@ fn success_probability(
const BILLIONISH: f64 = 1024.0 * 1024.0 * 1024.0 * 64.0;
let numerator = (num * BILLIONISH) as u64 + 1;
let denominator = (den * BILLIONISH) as u64 + 1;
debug_assert!(numerator <= 1 << 30, "Got large numerator ({}) from float {} (min {}, amt {}, max {}).", numerator, num, min, amount, max);
debug_assert!(numerator <= 1 << 30, "Got large numerator ({}) from float {} (min {}/{}/{}, amt {}/{}/{}, max {}/{}/{}).", numerator, num, min, min_pow, min_v, amount, amt_pow, amt_v, max, min_pow, min_v);
debug_assert!(denominator <= 1 << 30, "Got large denominator ({}) from float {} (min {}, amt {}, max {}).", denominator, den, min, amount, max);
(numerator, denominator)
};
Expand Down

0 comments on commit 4c8eb1e

Please sign in to comment.