Used wrong nonce for version message
This commit is contained in:
parent
505818a712
commit
cd3a801704
@ -162,7 +162,7 @@ class Connection extends AbstractConnection {
|
|||||||
try (Socket socket = Connection.this.socket) {
|
try (Socket socket = Connection.this.socket) {
|
||||||
initSocket(socket);
|
initSocket(socket);
|
||||||
if (mode == CLIENT || mode == SYNC) {
|
if (mode == CLIENT || mode == SYNC) {
|
||||||
send(new Version.Builder().defaults(peerNonce).addrFrom(host).addrRecv(node).build());
|
send(new Version.Builder().defaults(ctx.getClientNonce()).addrFrom(host).addrRecv(node).build());
|
||||||
}
|
}
|
||||||
while (state != DISCONNECTED) {
|
while (state != DISCONNECTED) {
|
||||||
if (mode != SYNC) {
|
if (mode != SYNC) {
|
||||||
|
@ -52,7 +52,7 @@ public class ConnectionInfo extends AbstractConnection {
|
|||||||
super(context, mode, node, listener, commonRequestedObjects, syncTimeout);
|
super(context, mode, node, listener, commonRequestedObjects, syncTimeout);
|
||||||
headerOut.flip();
|
headerOut.flip();
|
||||||
if (mode == CLIENT || mode == SYNC) {
|
if (mode == CLIENT || mode == SYNC) {
|
||||||
send(new Version.Builder().defaults(peerNonce).addrFrom(host).addrRecv(node).build());
|
send(new Version.Builder().defaults(ctx.getClientNonce()).addrFrom(host).addrRecv(node).build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user