forked from ACINQ/eclair
-
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.
Payment lifecycle refactor (ACINQ#1414)
* Extract faulty channels selection from PaymentLifecycle Move the logic of figuring out which channels/nodes should be ignored when retrying after a payment failure out of the PaymentLifecycle. We can figure this out looking only at the `PaymentFailure` generated, and the multi-part logic could leverage these helpers. * Refactor RouteResponse It was useless to return `ignoreNodes` and `ignoreChannels`, it's rather the responsibility of the caller (PaymentLifecycle) to store and update these sets. Preparing for the MPP move inside the router, we introduce a Route class and let RouteResponse return a collection of Routes. This creates some ugliness in PaymentLifecycle because of the `routePrefix`, but this is just temporary: the `routePrefix` "hack" will be removed soon.
- Loading branch information
Showing
19 changed files
with
294 additions
and
210 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
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
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
Oops, something went wrong.