htlcswitch: do not consider unknown failures an error

This commit is contained in:
Joost Jager committed 2019-07-11 19:49:49 +02:00
1 parent c6f9517e48
commit 2726f50d7c
7 files changed
+186 -112

No files matched your search

+3 -1
View File
@@ -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
}
}