From 660fe8a0d4b923c00468b5a116d88680e29c0b97 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 10 Feb 2014 16:51:33 +0000 Subject: [PATCH] Language. --- libethereum/PeerNetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libethereum/PeerNetwork.cpp b/libethereum/PeerNetwork.cpp index 51a345d0a..c74e4c095 100644 --- a/libethereum/PeerNetwork.cpp +++ b/libethereum/PeerNetwork.cpp @@ -144,13 +144,13 @@ bool PeerSession::interpret(RLP const& _r) case DisconnectPacket: { string reason = "Unspecified"; - if (_r.itemCount() > 1 && _r[1].isInt()) + if (_r[1].isInt()) switch (_r[1].toInt()) { case DisconnectRequested: reason = "Disconnect was requested."; break; case TCPError: reason = "Low-level TCP communication error."; break; case BadProtocol: reason = "Data format error."; break; - case UselessPeer: reason = "We had no use to peer."; break; + case UselessPeer: reason = "Peer had no use for this node."; break; case TooManyPeers: reason = "Peer had too many connections."; break; case DuplicatePeer: reason = "Peer was already connected."; break; case WrongGenesis: reason = "Disagreement over genesis block."; break;