htlcswitch/link: set PermanentFailure in case of remote error
This commit is contained in:
parent
a97182b1e9
commit
dde6763cef
@ -1900,9 +1900,14 @@ func (l *channelLink) handleUpstreamMsg(msg lnwire.Message) {
|
||||
// Error received from remote, MUST fail channel, but should
|
||||
// only print the contents of the error message if all
|
||||
// characters are printable ASCII.
|
||||
l.fail(LinkFailureError{code: ErrRemoteError},
|
||||
l.fail(
|
||||
LinkFailureError{
|
||||
code: ErrRemoteError,
|
||||
PermanentFailure: true,
|
||||
},
|
||||
"ChannelPoint(%v): received error from peer: %v",
|
||||
l.channel.ChannelPoint(), msg.Error())
|
||||
l.channel.ChannelPoint(), msg.Error(),
|
||||
)
|
||||
default:
|
||||
l.log.Warnf("received unknown message of type %T", msg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user