diff --git a/lnwire/lnwire.go b/lnwire/lnwire.go index a62593f9..8d12d60b 100644 --- a/lnwire/lnwire.go +++ b/lnwire/lnwire.go @@ -607,7 +607,7 @@ func readElement(r io.Reader, element interface{}) error { return err } - addrBytesRead += 1 + addrBytesRead++ address := &net.TCPAddr{} aType := addressType(descriptor[0])