mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 13:33:56 +02:00
routing: report success up to the failing node on FailChannelDisabled
This commit is contained in:
@@ -348,6 +348,10 @@ func (i *interpretedResult) processPaymentOutcomeIntermediate(
|
|||||||
|
|
||||||
reportOutgoing()
|
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
|
// If we get a permanent channel, we'll prune the channel set in both
|
||||||
// directions and continue with the rest of the routes.
|
// directions and continue with the rest of the routes.
|
||||||
case *lnwire.FailPermanentChannelFailure:
|
case *lnwire.FailPermanentChannelFailure:
|
||||||
|
@@ -362,6 +362,7 @@ var resultTestCases = []resultTestCase{
|
|||||||
pairResults: map[DirectedNodePair]pairResult{
|
pairResults: map[DirectedNodePair]pairResult{
|
||||||
getTestPair(1, 2): failPairResult(0),
|
getTestPair(1, 2): failPairResult(0),
|
||||||
getTestPair(2, 1): failPairResult(0),
|
getTestPair(2, 1): failPairResult(0),
|
||||||
|
getTestPair(0, 1): successPairResult(100),
|
||||||
},
|
},
|
||||||
policyFailure: getPolicyFailure(1, 2),
|
policyFailure: getPolicyFailure(1, 2),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user