routing: report success up to the failing node on FailChannelDisabled

This commit is contained in:
Juan Pablo Civile
2021-10-24 16:53:50 -03:00
parent 100abb4a30
commit 04c0718401
2 changed files with 5 additions and 0 deletions

View File

@ -348,6 +348,10 @@ func (i *interpretedResult) processPaymentOutcomeIntermediate(
reportOutgoing()
// All nodes up to the failing pair must have forwarded
// successfully.
i.successPairRange(route, 0, errorSourceIdx-1)
// If we get a permanent channel, we'll prune the channel set in both
// directions and continue with the rest of the routes.
case *lnwire.FailPermanentChannelFailure: