mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 19:23:51 +02:00
htlcswitch/link: set PermanentFailure in case of remote error
This commit is contained in:
@@ -1900,9 +1900,14 @@ func (l *channelLink) handleUpstreamMsg(msg lnwire.Message) {
|
|||||||
// Error received from remote, MUST fail channel, but should
|
// Error received from remote, MUST fail channel, but should
|
||||||
// only print the contents of the error message if all
|
// only print the contents of the error message if all
|
||||||
// characters are printable ASCII.
|
// characters are printable ASCII.
|
||||||
l.fail(LinkFailureError{code: ErrRemoteError},
|
l.fail(
|
||||||
|
LinkFailureError{
|
||||||
|
code: ErrRemoteError,
|
||||||
|
PermanentFailure: true,
|
||||||
|
},
|
||||||
"ChannelPoint(%v): received error from peer: %v",
|
"ChannelPoint(%v): received error from peer: %v",
|
||||||
l.channel.ChannelPoint(), msg.Error())
|
l.channel.ChannelPoint(), msg.Error(),
|
||||||
|
)
|
||||||
default:
|
default:
|
||||||
l.log.Warnf("received unknown message of type %T", msg)
|
l.log.Warnf("received unknown message of type %T", msg)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user