forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lightningd: fix/refactor select_inchan for invoice route-hint, use fr…
…actional excess as weight Refactored the weighted-reservoir-sampling algo to make it more straightforward. It now uses the excess as fraction of capacity as weight. This favors channels that are more _relatively_ unbalanced to be used for incoming payment. Now passes test_invoice_routeboost_private() when using max fundamount=16777215.
- Loading branch information
1 parent
06a062f
commit c053dc9
Showing
3 changed files
with
114 additions
and
44 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
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