mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
If we send payments over a path where a channel ended up being closed, we'll remove it before we call `ProbabilisticPaymentScorer::payment_path_failed`. This should be fine, except that `payment_path_failed` does not break out of its scoring loop if a channel is missing, causing it to assign a minimum available-liquidity of the payment amount even to channels which our attempt never arrived at. The fix is simple - add the missing check and break. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |