-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: prioritize short paths during findBestHop
* `findBestHopFor{Source,Destination}Amount()` should prioritize routes based on shortest `maxPathLength()`. * Fix `maxPathLength()`: if `nextLedger` is not equal to `destinationLedger`, increment the path length. * Possible fix for interledgerjs/ilp-connector#382. When two paths score the same, return the first in the Map.
- Loading branch information
1 parent
c2b5eea
commit 5510d01
Showing
3 changed files
with
57 additions
and
22 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