-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
paymod: Randomly select a routehint, or none at random
The adaptive MPP test was showing an issue with always using a routehint, even when it wasn't necessary: we would insist on routhing to the entrypoint of the routehint, even through the actual destination. If a channel on that loop would result being over capacity we'd slam below 0, and then increase again by unapplying the route. The solution really is not to insist on routing through a routehint, so we implement random skipping of routehints, and we rotate them if we have multiples.
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 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
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