From BOLT#01
upon receiving a message of even, unknown type:
MUST close the connection.
MAY fail the channels.
However, from my reading of the code, LND will just return UnknownMessage from makeEmptyMessage and continue to read the next message in the readHandler:
|
// compatible manner. |
|
case *lnwire.UnknownMessage: |
|
p.storeError(e) |
|
idleTimer.Reset(idleTimeout) |
|
continue |
This is fine for unknown, odd messages but apparently not for unknown, even messages
From BOLT#01
However, from my reading of the code, LND will just return
UnknownMessagefrommakeEmptyMessageand continue to read the next message in thereadHandler:lnd/peer/brontide.go
Lines 1464 to 1468 in 143eba8
This is fine for unknown, odd messages but apparently not for unknown, even messages