minor
This commit is contained in:
parent
b20b95e4ea
commit
50c5ad8576
|
@ -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);
|
||||
|
||||
|
|
|
@ -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[]) {
|
||||
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue