mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 19:22:40 +01:00
This commit adds a new error type to the `lnwire` package: `UnknownMessage`. With this error we can catch the particular case of a an error during reading that encounters a new or unknown message. When we encounter this message in the peer’s readHandler, we can now gracefully handle it by just skipping to the next message rather than closing out the section entirely. This puts us a bit closer to the spec, but not exactly as it has an additional constraint that we can only ignore a new message if it has an odd type. In a future release, we’ll modify this code to match the spec as written.
lnwire
[]
(https://travis-ci.org/lightningnetwork/lnd)
[
]
(https://github.com/lightningnetwork/lnd/blob/master/LICENSE)
[
]
(http://godoc.org/github.com/lightningnetwork/lnd/lnwire)
The lnwire package implements the Lightning Network wire protocol.
This package has intentionally been designed so it can be used as a standalone package for any projects needing to interface with lightning peers at the wire protocol level.
Installation and Updating
$ go get -u github.com/lightningnetwork/lnd/lnwire