diff --git a/ethereumj-core/src/main/java/org/ethereum/gui/ConnectionConsole.java b/ethereumj-core/src/main/java/org/ethereum/gui/ConnectionConsole.java index baeadf45..fce84d3e 100644 --- a/ethereumj-core/src/main/java/org/ethereum/gui/ConnectionConsole.java +++ b/ethereumj-core/src/main/java/org/ethereum/gui/ConnectionConsole.java @@ -62,7 +62,8 @@ public class ConnectionConsole extends JFrame implements PeerListener{ Thread t = new Thread() { public void run() { - new ClientPeer(thisConsole).connect("54.201.28.117", 30303); + new ClientPeer(thisConsole).connect("localhost", 30303); +// new ClientPeer(thisConsole).connect("54.201.28.117", 30303); // new ClientPeer(thisConsole).connect("82.217.72.169", 30303); // new ClientPeer(thisConsole).connect("54.204.10.41", 30303); } diff --git a/ethereumj-core/src/main/java/org/ethereum/net/message/HelloMessage.java b/ethereumj-core/src/main/java/org/ethereum/net/message/HelloMessage.java index 7310a905..96139fb8 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/message/HelloMessage.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/message/HelloMessage.java @@ -115,6 +115,7 @@ public class HelloMessage extends Message { } public String toString(){ + if (!parsed) parseRLP(); return "Hello Message [ command=" + HELLO.asByte() + " " + " protocolVersion=" + this.protocolVersion + " " + " networkId=" + this.networkId + " " + diff --git a/ethereumj-core/src/main/java/org/ethereum/net/message/StaticMessages.java b/ethereumj-core/src/main/java/org/ethereum/net/message/StaticMessages.java index de293a28..b88336f1 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/message/StaticMessages.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/message/StaticMessages.java @@ -63,7 +63,7 @@ public class StaticMessages { byte[] peerIdBytes = Utils.hexStringToByteArr(peerId); - HELLO_MESSAGE = new HelloMessage((byte)0x0E, (byte)0x00, "EthereumJ [v0.0.1] pure java [by Roman Mandeleil]", + HELLO_MESSAGE = new HelloMessage((byte)0x0F, (byte)0x00, "EthereumJ [v0.0.1] pure java [by Roman Mandeleil]", (byte)0b00000111, (short)30303, peerIdBytes); /*