wip: check error of wire read

This commit is contained in:
Alexander Simmerl
2018-01-18 19:40:34 +01:00
committed by Ethan Buchman
parent a49357b19e
commit ff600e9aa0

View File

@@ -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)