Ejemplo n.º 1
0
        public GeneralConfig(bool initDefaults = false)
        {
            ConfigFileVersion   = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
            BenchmarkTimeLimits = new BenchmarkTimeLimitsConfig();
            DeviceDetection     = new DeviceDetectionConfig();

            hwidOK           = false;
            hwidLoadFromFile = false;
            IsNewVersion     = false;

            // only init defaults for created config not read
            if (initDefaults)
            {
                SetDefaults();
                hwid = Helpers.GetCpuID();
            }
        }
Ejemplo n.º 2
0
 public void SetDefaults()
 {
     ConfigFileVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
     Language          = LanguageType.En;
     BitcoinAddress    = "";
     WorkerName        = "worker1";
     ServiceLocation   = 0;
     AutoStartMining   = false;
     //LessThreads = 0;
     DebugConsole                = false;
     HideMiningWindows           = false;
     MinimizeToTray              = false;
     BenchmarkTimeLimits         = new BenchmarkTimeLimitsConfig();
     DeviceDetection             = new DeviceDetectionConfig();
     DisableAMDTempControl       = false;
     DisableDefaultOptimizations = false;
     AutoScaleBTCValues          = true;
     StartMiningWhenIdle         = false;
     LogToFile                        = true;
     LogMaxFileSize                   = 1048576;
     ShowDriverVersionWarning         = true;
     DisableWindowsErrorReporting     = true;
     NVIDIAP0State                    = false;
     MinerRestartDelayMS              = 500;
     ethminerDefaultBlockHeight       = 2000000;
     SwitchMinSecondsFixed            = 90;
     SwitchMinSecondsDynamic          = 30;
     SwitchMinSecondsAMD              = 90;
     MinIdleSeconds                   = 60;
     DisplayCurrency                  = "USD";
     ApiBindPortPoolStart             = 4000;
     MinimumProfit                    = 0;
     EthminerDagGenerationType        = DagGenerationType.SingleKeep;
     DownloadInit                     = false;
     ContinueMiningIfNoInternetAccess = false;
     Use3rdPartyMiners                = Use3rdPartyMiners.NOT_SET;
     DownloadInit3rdParty             = false;
 }