diff --git a/src/main/java/org/tron/p2p/connection/ChannelManager.java b/src/main/java/org/tron/p2p/connection/ChannelManager.java index af8e38d..430fab6 100644 --- a/src/main/java/org/tron/p2p/connection/ChannelManager.java +++ b/src/main/java/org/tron/p2p/connection/ChannelManager.java @@ -27,10 +27,6 @@ @Slf4j(topic = "net") public class ChannelManager { - private static byte tronHelloMessageType = 32; - - private static byte tronDisconnectType = 33; - private static PeerServer peerServer; @Getter @@ -174,9 +170,6 @@ private static void handMessage(Channel channel, byte[] data) throws P2pExceptio } if (!channel.isFinishHandshake()) { - if (!channel.isFinishHandshake() && tronDisconnectType != data[0]) { - throw new P2pException(P2pException.TypeEnum.BAD_PROTOCOL, "type: " + data[0]); - } channel.setFinishHandshake(true); Parameter.handlerList.forEach(h -> h.onConnect(channel)); }