Adapting for Ethereum as a library style:
+ double chain loading but solved
This commit is contained in:
parent
79dc226d76
commit
b4d9dea7e2
|
@ -71,8 +71,6 @@ public interface Ethereum {
|
||||||
|
|
||||||
public void addListener(EthereumListener listener);
|
public void addListener(EthereumListener listener);
|
||||||
|
|
||||||
public void loadBlockChain();
|
|
||||||
|
|
||||||
|
|
||||||
public ClientPeer getDefaultPeer();
|
public ClientPeer getDefaultPeer();
|
||||||
|
|
||||||
|
|
|
@ -132,11 +132,6 @@ public class EthereumImpl implements Ethereum {
|
||||||
WorldManager.getInstance().addListener(listener);
|
WorldManager.getInstance().addListener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void loadBlockChain() {
|
|
||||||
WorldManager.getInstance().loadBlockchain();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isBlockChainLoading() {
|
public boolean isBlockChainLoading() {
|
||||||
return WorldManager.getInstance().isBlockChainLoading();
|
return WorldManager.getInstance().isBlockChainLoading();
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.ethereum.gui;
|
package org.ethereum.gui;
|
||||||
|
|
||||||
import org.ethereum.config.SystemProperties;
|
import org.ethereum.config.SystemProperties;
|
||||||
|
import org.ethereum.facade.Ethereum;
|
||||||
import org.ethereum.util.Utils;
|
import org.ethereum.util.Utils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -228,7 +229,7 @@ public class ToolBar extends JFrame {
|
||||||
cp.add(chainToggle);
|
cp.add(chainToggle);
|
||||||
cp.add(walletToggle);
|
cp.add(walletToggle);
|
||||||
|
|
||||||
UIEthereumManager.ethereum.loadBlockChain();
|
Ethereum ethereum = UIEthereumManager.ethereum;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue