This commit is contained in:
romanman 2014-05-22 14:51:25 +03:00
parent b20b95e4ea
commit 50c5ad8576
3 changed files with 10 additions and 3 deletions

View File

@ -72,6 +72,8 @@ public class ConnectionConsoleWindow extends JFrame implements PeerListener{
// new ClientPeer(thisConsole).connect("54.201.28.117", 30303); // peer discovery
// new ClientPeer(thisConsole).connect("82.217.72.169", 30303); // Nick
// new ClientPeer(thisConsole).connect("131.104.247.135", 30303); // Some dude in Canada
// new ClientPeer(thisConsole).connect("54.204.10.41", 30303);

View File

@ -1,5 +1,7 @@
package org.ethereum.gui;
import org.ethereum.manager.MainData;
import java.awt.*;
import java.util.Timer;
import java.util.TimerTask;
@ -80,7 +82,8 @@ public class PeersTableWindow extends JFrame{
}
}, 1000, 1000);
}
MainData.instance.startPeerDiscovery();
}
public static void main(String args[]) {

View File

@ -44,7 +44,6 @@ public class MainData {
new byte[]{54 , (byte)201, 28, 117}, (short) 30303, new byte[]{00});
peers.add(peer);
byte[] cowAddr = HashUtil.sha3("cow".getBytes());
ECKey key = ECKey.fromPrivate(cowAddr);
@ -54,7 +53,6 @@ public class MainData {
wallet.importKey(HashUtil.sha3("cat".getBytes()));
peerDiscovery = new PeerDiscovery(peers);
peerDiscovery.start();
}
@ -149,4 +147,8 @@ public class MainData {
}
public void startPeerDiscovery(){
peerDiscovery.start();
};
}