diff --git a/types/priv_validator/socket.go b/types/priv_validator/socket.go index f55b6c7f4..2ed4c46f2 100644 --- a/types/priv_validator/socket.go +++ b/types/priv_validator/socket.go @@ -199,6 +199,10 @@ func (pvss *PrivValidatorSocketServer) acceptConnectionsRoutine() { var n int var err error b := wire.ReadByteSlice(conn, 0, &n, &err) //XXX: no max + if err != nil { + panic(err) + } + req, err := decodeMsg(b) if err != nil { panic(err)