From a49e39de75858b7809891160dc094734a07562b3 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 3 Jan 2019 21:11:41 -0800 Subject: [PATCH] peer: don't d/c on invalid node alias --- peer.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/peer.go b/peer.go index bf367a4a..41f32299 100644 --- a/peer.go +++ b/peer.go @@ -996,6 +996,13 @@ out: idleTimer.Reset(idleTimeout) continue + // If the NodeAnnouncement has an invalid alias, then + // we'll log that error above and continue so we can + // continue to read messges from the peer. + case *lnwire.ErrInvalidNodeAlias: + idleTimer.Reset(idleTimeout) + continue + // If the error we encountered wasn't just a message we // didn't recognize, then we'll stop all processing s // this is a fatal error.