forked from lightningnetwork/lnd
-
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.
routing: account for remaining routing onion errors in SendPayment
In this commit, we address a number of edge cases that were unaccounted for when responding to errors that can be sent back due to an HTLC routing failure. Namely: * We’ll no longer stop payment attempts if we’re unable to apply a channel update, instead, we’ll log the error, prune the channel and continue. * We’ll no remember which channels were pruned due to insufficient fee errors. If we ever get a repeat fee error from a channel, then we prune it. This ensure that we don’t get stuck in a loop due to a node continually advertising the same fees. * We also correct an error in which node we’d prune due to a temporary or permanent node failure. Before this commit, we would prune the next node, when we should actually be pruning the node that sent us the error. Finally, we also add a new test to exercise the fee insufficient error handling and channel pruning. Fixes lightningnetwork#865.
- Loading branch information
Showing
2 changed files
with
234 additions
and
86 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
Oops, something went wrong.