This commit refactors the remaining usage of WriteElements. By
replacing the interface types with concrete types for the params used in
the methods, most of the encoding of the messages now takes zero heap
allocations.
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