Exemplo n.º 1
0
 public Engine()
 {
     DeviceConfigurations  = new List <Device>();
     CoinConfigurations    = new List <Coin>();
     XgminerConfiguration  = new Xgminer();
     StrategyConfiguration = new Strategy();
 }
Exemplo n.º 2
0
        public void LoadMinerConfiguration()
        {
            string fileName = XgminerConfigurationFileName();

            UpgradeMinerConfigurationFile(fileName);
            Xgminer minerConfiguration = ConfigurationReaderWriter.ReadConfiguration <Xgminer>(fileName);

            ObjectCopier.CopyObject(minerConfiguration, this);

            UpgradeConfiguration();

            if (StratumProxies.Count == 0)
            {
                AddDefaultProxy();
            }
        }