Update p2p/rlpx.go

Co-Authored-By: LiangMa <liangma.ul@gmail.com>
This commit is contained in:
Péter Szilágyi 2018-11-07 14:53:12 +00:00 committed by GitHub
parent 19d37e1f70
commit a01a86cc65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ func readProtocolHandshake(rw MsgReader, our *protoHandshake) (*protoHandshake,
}
if msg.Code == discMsg {
// Disconnect before protocol handshake is valid according to the
// spec and we send it ourself if the posthandshake checks fail.
// spec and we send it ourself if the post-handshake checks fail.
// We can't return the reason directly, though, because it is echoed
// back otherwise. Wrap it in a string instead.
var reason [1]DiscReason