mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-16 13:46:46 +00:00
minor fixes
This commit is contained in:
parent
561c4f2f86
commit
5f413d0ffb
@ -142,8 +142,11 @@ public class EthereumImpl implements Ethereum {
|
||||
public PeerClient getDefaultPeer(){
|
||||
|
||||
PeerClient peer = WorldManager.getInstance().getActivePeer();
|
||||
if (peer == null)
|
||||
if (peer == null){
|
||||
|
||||
peer = new PeerClient();
|
||||
WorldManager.getInstance().setActivePeer(peer);
|
||||
}
|
||||
return peer;
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,6 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* www.ethergit.com
|
||||
*
|
||||
* @author: Roman Mandeleil
|
||||
* Created on: 15/10/2014 12:34
|
||||
|
@ -76,12 +76,13 @@ public class ConnectionConsoleWindow extends JFrame implements PeerListener {
|
||||
|
||||
Thread t = new Thread() {
|
||||
public void run() {
|
||||
PeerClient clientPeer = UIEthereumManager.ethereum.getDefaultPeer();
|
||||
clientPeer.setPeerListener(thisConsole);
|
||||
clientPeer.connect(SystemProperties.CONFIG.activePeerIP(),
|
||||
|
||||
UIEthereumManager.ethereum.connect(SystemProperties.CONFIG.activePeerIP(),
|
||||
SystemProperties.CONFIG.activePeerPort());
|
||||
}
|
||||
};
|
||||
|
||||
UIEthereumManager.ethereum.getDefaultPeer().setPeerListener(this);
|
||||
t.start();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user