mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
peer: don't d/c on invalid node alias
This commit is contained in:
parent
1821773e39
commit
a49e39de75
1 changed files with 7 additions and 0 deletions
7
peer.go
7
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue