|
|
@ -97,7 +97,8 @@ abstract class AbstractHandshakeHandler extends SimpleChannelInboundHandler<Byte |
|
|
|
ctx.writeAndFlush(nextMsg.get()); |
|
|
|
ctx.writeAndFlush(nextMsg.get()); |
|
|
|
} else if (handshaker.getStatus() != Handshaker.HandshakeStatus.SUCCESS) { |
|
|
|
} else if (handshaker.getStatus() != Handshaker.HandshakeStatus.SUCCESS) { |
|
|
|
LOG.debug("waiting for more bytes"); |
|
|
|
LOG.debug("waiting for more bytes"); |
|
|
|
} else { |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final Bytes nodeId = handshaker.partyPubKey().getEncodedBytes(); |
|
|
|
final Bytes nodeId = handshaker.partyPubKey().getEncodedBytes(); |
|
|
|
if (!localNode.isReady()) { |
|
|
|
if (!localNode.isReady()) { |
|
|
@ -138,7 +139,6 @@ abstract class AbstractHandshakeHandler extends SimpleChannelInboundHandler<Byte |
|
|
|
msg.retain(); |
|
|
|
msg.retain(); |
|
|
|
ctx.fireChannelRead(msg); |
|
|
|
ctx.fireChannelRead(msg); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void disconnect( |
|
|
|
private void disconnect( |
|
|
|
final ChannelHandlerContext ctx, final DisconnectMessage.DisconnectReason reason) { |
|
|
|
final ChannelHandlerContext ctx, final DisconnectMessage.DisconnectReason reason) { |
|
|
|