public void Miner_Stop() { if (_miner != null) { _miner.Stop(); while (_miner.IsRunning()) { Thread.Sleep(100); } _miner = null; } }
public void Miner_Start(string address) { _miner = new BlockChainDemo.Miner(this, address); _miner.Start(); }