htlcswitch: do not consider unknown failures an error

This commit is contained in:
Joost Jager
2019-06-19 15:09:23 +02:00
parent c6f9517e48
commit 2726f50d7c
7 changed files with 186 additions and 112 deletions

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
}
}