multi: stop casting peer warning messages as errors

Split the logic for processing `error` and `warning` messages from our
peers.
This commit is contained in:
positiveblue committed 2022-10-26 08:09:08 -07:00
1 parent e65f05360e
commit 4d4d8e480c
8 files changed
+282 -57

No files matched your search

+1 -1
View File
@@ -2069,7 +2069,7 @@ func (l *channelLink) handleUpstreamMsg(msg lnwire.Message) {
// although we "MAY" do so according to the specification.
case *lnwire.Warning:
l.log.Warnf("received warning message from peer: %v",
msg.Error.Error())
msg.Warning())
case *lnwire.Error:
// Error received from remote, MUST fail channel, but should