lnwire: add missing cases in [read/write]Element

Add cases to encode/decode wire.OutPoint, and a final line to properly
write out signatures fully.
This commit is contained in:
Olaoluwa Osuntokun committed 2016-05-30 15:45:01 -07:00
1 parent 61994bc294
commit 9978d889b7
2 files changed
+39 -3

No files matched your search

+1 -3
View File
@@ -173,9 +173,7 @@ func discardInput(r io.Reader, n uint32) {
// WriteMessage writes a lightning Message to w including the necessary header
// information and returns the number of bytes written.
func WriteMessage(w io.Writer, msg Message, pver uint32,
btcnet wire.BitcoinNet) (int, error) {
func WriteMessage(w io.Writer, msg Message, pver uint32, btcnet wire.BitcoinNet) (int, error) {
totalBytes := 0
cmd := msg.Command()