This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
wip: check error of wire read
pull/1204/head
Alexander Simmerl
7 years ago
committed by
Ethan Buchman
parent
a49357b19e
commit
ff600e9aa0
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
types/priv_validator/socket.go
+ 4
- 0
types/priv_validator/socket.go
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
)
Write
Preview
Loading…
Cancel
Save