mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 19:33:30 +02:00
htlcswitch: do not consider unknown failures an error
This commit is contained in:
@@ -399,9 +399,8 @@ func marshallError(sendError error) (*Failure, error) {
|
||||
|
||||
case *lnwire.FailPermanentChannelFailure:
|
||||
response.Code = Failure_PERMANENT_CHANNEL_FAILURE
|
||||
|
||||
default:
|
||||
return nil, errors.New("unknown wire error")
|
||||
response.Code = Failure_UNKNOWN_FAILURE
|
||||
}
|
||||
|
||||
response.FailureSourceIndex = uint32(fErr.FailureSourceIdx)
|
||||
|
Reference in New Issue
Block a user