]> git.bitcoin.ninja Git - rust-lightning/commit
Don't over-penalize channels with inflight HTLCs
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 10 Oct 2024 23:01:23 +0000 (18:01 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 18 Oct 2024 23:28:40 +0000 (18:28 -0500)
commit866588c20f497c2fc5d2307e9f2313728022bff8
tree6dfc87f513bffcc81cfead8d5c6407d91a2c7dce
parent605952cefd7932cf49912f5373f6842a8d9ca5af
Don't over-penalize channels with inflight HTLCs

Commit df52da7b31494c7ec77a705cca4c44bc840f8a95 modified
ProbabilisticScorer to apply some penalty amount multipliers (e.g.,
liquidity_penalty_amount_multiplier_msat) to the total amount flowing
over the channel (i.e., including inflight HTLCs), not just the payment
in question. This led to over-penalizing in-use channels. Instead, only
apply the total amount when calculating success probability.
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs