This commit does away with the ErrorCode field in order to ensure that we’re properly compatible with BOLT-0002. In the future the error code field may be re-introduced as it’s much easier to check against an internet error rather than interpret a byte slice describing the error.
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