protected override void Start() { CreateWalletIfNotExists(); GethManager.StartGeth(); base.Start(); UpdateBlockNumber(); }
protected override void Start() { base.Start(); GethManager.StartGeth(); // Wait 1s then get the network status Invoke("EnableNetworkStatusDemo", 1); }
public void OnMiningClick() { if (GethManager.isMining) { _buttonText.text = "Start"; var t = GethManager.StopMiner(() => { QueueStatus("Mining stopped."); WalletManager.StopWatchNewBlocks(); }); } else { _buttonText.text = "Stop"; var t = GethManager.StartMiner(() => { QueueStatus("Mining started."); WalletManager.WatchNewBlocks(); }, () => { QueueStatus("<color=red>Mining cannot start, please check if geth is running with the chosen network.</color>"); OnMiningClick(); }); } }
public void OnStopGethClick() { GethManager.StopGeth(); }