mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-26 14:08:41 +01:00
htlcswitch: do not consider unknown failures an error
This commit is contained in:
@@ -2076,8 +2076,10 @@ func (r *ChannelRouter) processSendError(paySession PaymentSession,
|
||||
}, 0)
|
||||
return false, 0
|
||||
|
||||
// Any other failure or an empty failure will get the node pruned.
|
||||
default:
|
||||
return true, channeldb.FailureReasonError
|
||||
paySession.ReportVertexFailure(failureVertex)
|
||||
return false, 0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user