-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing break when scoring a path with a missing channel
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.
- Loading branch information
1 parent
6ca4994
commit 00607a5
Showing
1 changed file
with
83 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters