Skip to content

Commit 3287297

Browse files
committed
f correct inequality
1 parent 534b450 commit 3287297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scoring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref> ProbabilisticScorer<G, L> whe
10011001
.as_directed(&source, &target, capacity_msat);
10021002
let min_liq = liq.min_liquidity_msat();
10031003
let max_liq = liq.max_liquidity_msat();
1004-
if amount_msat < liq.min_liquidity_msat() {
1004+
if amount_msat <= liq.min_liquidity_msat() {
10051005
return Some(1.0);
10061006
} else if amount_msat > liq.max_liquidity_msat() {
10071007
return Some(0.0);

0 commit comments

Comments
 (0)