Adapting for Ethereum as a library style:

+ double chain loading but solved
This commit is contained in:
romanman 2014-09-06 13:46:21 +03:00
parent 79dc226d76
commit b4d9dea7e2
3 changed files with 2 additions and 8 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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;
} }