-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential race condition in node-relay (#1716)
We previously relied on `context.child` to check whether we already had a relay handler for a given payment_hash. Unfortunately this could return an actor that is currently stopping itself. When that happens our relay command can end up in the dead letters and the payment will not be relayed, nor be failed upstream. We fix that by maintaining the list of current relay handlers in the NodeRelayer and removing them from the list before stopping them. This is similar to what's done in the MultiPartPaymentFSM.
- Loading branch information
Showing
3 changed files
with
117 additions
and
41 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