Exemplo n.º 1
0
 protected override void Start()
 {
     CreateWalletIfNotExists();
     GethManager.StartGeth();
     base.Start();
     UpdateBlockNumber();
 }
Exemplo n.º 2
0
        protected override void Start()
        {
            base.Start();

            GethManager.StartGeth();

            // Wait 1s then get the network status
            Invoke("EnableNetworkStatusDemo", 1);
        }
Exemplo n.º 3
0
 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();
         });
     }
 }
Exemplo n.º 4
0
 public void OnStopGethClick()
 {
     GethManager.StopGeth();
 }