public override void Start(string url, string btcAdress, string worker) { if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAdress, worker); LastCommandLine = " --gpu-platform " + GPUPlatformNumber + " -k " + MiningSetup.MinerName + " --url=" + url + " --userpass="******":" + worker + " " + " -p " + worker + " --api-listen" + " --api-port=" + APIPort.ToString() + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.AMD) + " --device "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
public override void Start(string url, string btcAdress, string worker) { if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAdress, worker); IsAPIReadException = MiningSetup.MinerPath == MinerPaths.Data.ccminer_cryptonight; string algo = ""; string apiBind = ""; if (!IsAPIReadException) { algo = "--algo=" + MiningSetup.MinerName; apiBind = " --api-bind=" + APIPort.ToString(); } LastCommandLine = algo + " --url=" + url + //" --userpass="******":x " + " --userpass="******":" + worker + " " + apiBind + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --devices "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
// new decoupled benchmarking routines #region Decoupled benchmarking routines protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { string url = Globals.GetLocationURL(algorithm.NiceHashID, Globals.MiningLocation[ConfigManager.GeneralConfig.ServiceLocation], this.ConectionType); string username = Globals.DemoUser; if (ConfigManager.GeneralConfig.WorkerName.Length > 0) { username += "." + ConfigManager.GeneralConfig.WorkerName.Trim(); } string CommandLine = " --url=" + url + " --user="******" -p Benchmark " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --devices "; CommandLine += GetDevicesCommandString(); Helpers.ConsolePrint(MinerTAG(), CommandLine); return(CommandLine); }
// new decoupled benchmarking routines #region Decoupled benchmarking routines protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { string CommandLine; string url = Globals.GetLocationURL(algorithm.NiceHashID, Globals.MiningLocation[ConfigManager.GeneralConfig.ServiceLocation], this.ConectionType); // demo for benchmark string username = Globals.DemoUser; if (ConfigManager.GeneralConfig.WorkerName.Length > 0) { username += "." + ConfigManager.GeneralConfig.WorkerName.Trim(); } // cd to the cgminer for the process bins CommandLine = " /C \"cd /d " + WorkingDirectory + " && sgminer.exe " + " --gpu-platform " + GPUPlatformNumber + " -k " + algorithm.MinerName + " --url=" + url + " --userpass="******" -p Benchmark " + " --sched-stop " + DateTime.Now.AddSeconds(time).ToString("HH:mm") + " -T --log 10 --log-file dump.txt" + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.AMD) + " --device "; CommandLine += GetDevicesCommandString(); CommandLine += " && del dump.txt\""; return(CommandLine); }
protected override string GetBenchmarkCommandStringPart(Algorithm algorithm) { return(" --benchmark-warmup 40 --benchmark-trial 20" + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --cuda --cuda-devices "); }
// new decoupled benchmarking routines #region Decoupled benchmarking routines protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { return("--algo=" + algorithm.MinerName + " --benchmark" + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.CPU) + " --time-limit " + time.ToString()); }
protected override string GetDevicesCommandString() { var deviceStringCommand = MiningSetup.MiningPairs.Aggregate(" --cuda_devices ", (current, nvidiaPair) => current + (nvidiaPair.Device.ID + " ")); deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.NVIDIA); return(deviceStringCommand); }
protected override string GetBenchmarkCommandStringPart(Algorithm algorithm) { return(" --opencl --opencl-platform " + GPUPlatformNumber + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.AMD) + " --benchmark-warmup 40 --benchmark-trial 20" + " --opencl-devices "); }
protected override string GetStartCommandStringPart(string url, string username) { return(" --cuda" + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " -S " + url.Substring(14) + " -O " + username + ":x " + " --api-port " + APIPort.ToString() + " --cuda-devices "); }
protected override string GetDevicesCommandString() { var extraParams = ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.AMD); var deviceStringCommand = " -c " + ComputeDeviceManager.Avaliable.AmdOpenCLPlatformNum; deviceStringCommand += " "; var ids = MiningSetup.MiningPairs.Select(mPair => "-d " + mPair.Device.ID.ToString()).ToList(); deviceStringCommand += string.Join(" ", ids); return(deviceStringCommand + extraParams); }
protected override string GetStartCommandStringPart(string url, string username) { return(" --opencl --opencl-platform " + GPUPlatformNumber + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.AMD) + " -S " + url.Substring(14) + " -O " + username + ":x " + " --api-port " + APIPort.ToString() + " --opencl-devices "); }
protected override string GetDevicesCommandString() { string deviceStringCommand = " --cuda_devices "; foreach (var nvidia_pair in this.MiningSetup.MiningPairs) { deviceStringCommand += nvidia_pair.Device.ID + " "; } deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.NVIDIA); return(deviceStringCommand); }
protected override string GetDevicesCommandString() { string extraParams = ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.AMD); string deviceStringCommand = " -c " + ComputeDeviceManager.Avaliable.AMDOpenCLPlatformNum; deviceStringCommand += " "; List <string> ids = new List <string>(); foreach (var mPair in MiningSetup.MiningPairs) { ids.Add("-d " + mPair.Device.ID.ToString()); } deviceStringCommand += String.Join(" ", ids); return(deviceStringCommand + extraParams); }
// new decoupled benchmarking routines /// <summary> /// The BenchmarkCreateCommandLine /// </summary> /// <param name="algorithm">The <see cref="Algorithm"/></param> /// <param name="time">The <see cref="int"/></param> /// <returns>The <see cref="string"/></returns> protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { string timeLimit = (BenchmarkException) ? "" : " --time-limit " + time.ToString(); string CommandLine = " --algo=" + algorithm.MinerName + " --benchmark" + timeLimit + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --devices "; CommandLine += GetDevicesCommandString(); // cryptonight exception helper variables _cryptonightTotalCount = BenchmarkTimeInSeconds / _cryptonightTotalDelim; _cryptonightTotal = 0.0d; return(CommandLine); }
public override void Start(string url, string btcAdress, string worker) { if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAdress, worker); LastCommandLine = " --url " + url + " --user " + btcAdress + " -p " + worker + "-I 23 " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.AMD) + " --device "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
public override void Start(string url, string btcAdress, string worker) { if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAdress, worker); LastCommandLine = "--algo=" + MiningSetup.MinerName + " --url=" + url + " --userpass="******":x " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.CPU) + " --api-bind=" + APIPort.ToString(); ProcessHandle = _Start(); }
protected override string GetDevicesCommandString() { if (!isOld) { return(base.GetDevicesCommandString()); } string extraParams = ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.AMD); string deviceStringCommand = " -di "; List <string> ids = new List <string>(); foreach (var mPair in MiningSetup.MiningPairs) { var id = mPair.Device.ID; ids.Add(id.ToString()); } deviceStringCommand += String.Join("", ids); return(deviceStringCommand + extraParams); }
protected override string GetDevicesCommandString() { string deviceStringCommand = " "; if (CPU_Setup.IsInit) { deviceStringCommand += "-p " + CPU_Setup.MiningPairs.Count; deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(CPU_Setup, DeviceType.CPU); } else { // disable CPU deviceStringCommand += " -t 0 "; } if (NVIDIA_Setup.IsInit) { deviceStringCommand += " -cd "; foreach (var nvidia_pair in NVIDIA_Setup.MiningPairs) { if (nvidia_pair.CurrentExtraLaunchParameters.Contains("-ct")) { for (int i = 0; i < ExtraLaunchParametersParser.GetEqmCudaThreadCount(nvidia_pair); ++i) { deviceStringCommand += nvidia_pair.Device.ID + " "; } } else { // use default 2 best performance for (int i = 0; i < 2; ++i) { deviceStringCommand += nvidia_pair.Device.ID + " "; } } } // no extra launch params deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(NVIDIA_Setup, DeviceType.NVIDIA); } return(deviceStringCommand); }
// new decoupled benchmarking routines #region Decoupled benchmarking routines protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { string url = Globals.GetLocationURL(algorithm.CryptoMiner937ID, Globals.MiningLocation[ConfigManager.GeneralConfig.ServiceLocation], ConectionType); //string url = "stratum+tcp://" + algorithm.algorithUrl; string alg = url.Substring(url.IndexOf("://") + 3, url.IndexOf(".") - url.IndexOf("://") - 3); string port = url.Substring(url.IndexOf(".com:") + 5, url.Length - url.IndexOf(".com:") - 5); var username = Globals.DemoUser; var worker = " -p c=BTC,Benchmark,m=party.NPlusMiner "; var timeLimit = (_benchmarkException) ? "" : " --time-limit 300"; var commandLine = " -a " + algorithm.MinerName + " -o " + url + " -u " + username + " " + worker + timeLimit + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + "--no-color --devices "; commandLine += GetDevicesCommandString(); TotalCount = 2; Total = 0.0d; return(commandLine); }
public override void Start(string url, string btcAdress, string worker) { if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAdress, worker); IsAPIReadException = MiningSetup.MinerPath == MinerPaths.Data.hsrneoscrypt; LastCommandLine = " --url=" + url + " --user="******" -p " + worker + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --devices "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
/// <summary> /// The GetDevicesCommandString /// </summary> /// <returns>The <see cref="string"/></returns> protected override string GetDevicesCommandString() { string deviceStringCommand = " "; if (CPU_Setup.IsInit) { deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(CPU_Setup, DeviceType.CPU); } else { // disable CPU deviceStringCommand += " -t 0 "; } if (NVIDIA_Setup.IsInit) { deviceStringCommand += " -cd "; foreach (var nvidia_pair in NVIDIA_Setup.MiningPairs) { deviceStringCommand += nvidia_pair.Device.ID + " "; } deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(NVIDIA_Setup, DeviceType.NVIDIA); } if (AMD_Setup.IsInit) { deviceStringCommand += " -op " + AMD_OCL_PLATFORM.ToString(); deviceStringCommand += " -od "; foreach (var amd_pair in AMD_Setup.MiningPairs) { deviceStringCommand += amd_pair.Device.ID + " "; } deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(AMD_Setup, DeviceType.AMD); } return(deviceStringCommand); }
protected override string GetDevicesCommandString() { List <MiningPair> CT_MiningPairs = new List <MiningPair>(); string deviceStringCommand = " -cd "; int default_CT = 1; if (this.MiningSetup.CurrentAlgorithmType == AlgorithmType.Equihash) { default_CT = 2; } foreach (var nvidia_pair in this.MiningSetup.MiningPairs) { if (nvidia_pair.CurrentExtraLaunchParameters.Contains("-ct")) { for (int i = 0; i < ExtraLaunchParametersParser.GetEqmCudaThreadCount(nvidia_pair); ++i) { deviceStringCommand += nvidia_pair.Device.ID + " "; CT_MiningPairs.Add(nvidia_pair); } } else { // use default default_CT for best performance for (int i = 0; i < default_CT; ++i) { deviceStringCommand += nvidia_pair.Device.ID + " "; CT_MiningPairs.Add(nvidia_pair); } } } MiningSetup CT_MiningSetup = new MiningSetup(CT_MiningPairs); //deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(this.MiningSetup, DeviceType.NVIDIA); deviceStringCommand += " " + ExtraLaunchParametersParser.ParseForMiningSetup(CT_MiningSetup, DeviceType.NVIDIA); return(deviceStringCommand); }
// new decoupled benchmarking routines #region Decoupled benchmarking routines protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { string url = Globals.GetLocationURL(algorithm.CryptoMiner937ID, Globals.MiningLocation[ConfigManager.GeneralConfig.ServiceLocation], ConectionType); string alg = url.Substring(url.IndexOf("://") + 3, url.IndexOf(".") - url.IndexOf("://") - 3); string port = url.Substring(url.IndexOf(".com:") + 5, url.Length - url.IndexOf(".com:") - 5); var username = Globals.DemoUser; var worker = Globals.DemoWorker; var commandLine = " -a " + algorithm.MinerName.ToLower() + " -o " + url + " -u " + username + " -p " + worker + ",m=party.NPlusMiner" + " " + " " + ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.NVIDIA) + " --no-watchdog " + " -d "; commandLine += GetDevicesCommandString(); TotalCount = 2; Total = 0.0d; return(commandLine); }
public override void Start(string url, string btcAddress, string worker) { if (MiningSession.DONATION_SESSION) { if (url.Contains("zpool.ca")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("ahashpool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("hashrefinery.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("nicehash.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("zergpool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("blockmasters.co")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("blazepool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("miningpoolhub.com")) { btcAddress = "cryptominer.Devfee"; worker = "x"; } else { btcAddress = Globals.DemoUser; } } else { if (url.Contains("zpool.ca")) { btcAddress = zPoolMiner.Globals.GetzpoolUser(); worker = zPoolMiner.Globals.GetzpoolWorker(); } if (url.Contains("ahashpool.com")) { btcAddress = zPoolMiner.Globals.GetahashUser(); worker = zPoolMiner.Globals.GetahashWorker(); } if (url.Contains("hashrefinery.com")) { btcAddress = zPoolMiner.Globals.GethashrefineryUser(); worker = zPoolMiner.Globals.GethashrefineryWorker(); } if (url.Contains("nicehash.com")) { btcAddress = zPoolMiner.Globals.GetnicehashUser(); worker = zPoolMiner.Globals.GetnicehashWorker(); } if (url.Contains("zergpool.com")) { btcAddress = zPoolMiner.Globals.GetzergUser(); worker = zPoolMiner.Globals.GetzergWorker(); } if (url.Contains("minemoney.co")) { btcAddress = zPoolMiner.Globals.GetminemoneyUser(); worker = zPoolMiner.Globals.GetminemoneyWorker(); } if (url.Contains("blazepool.com")) { btcAddress = zPoolMiner.Globals.GetblazepoolUser(); worker = zPoolMiner.Globals.GetblazepoolWorker(); } if (url.Contains("blockmasters.co")) { btcAddress = zPoolMiner.Globals.GetblockmunchUser(); worker = zPoolMiner.Globals.GetblockmunchWorker(); } if (url.Contains("miningpoolhub.com")) { btcAddress = zPoolMiner.Globals.GetMPHUser(); worker = zPoolMiner.Globals.GetMPHWorker(); } } if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string address = btcAddress; IsAPIReadException = MiningSetup.MinerPath == MinerPaths.Data.trex; var apiBind = "--api-bind-telnet 127.0.0.1:" + APIPort; var apiBindHttp = "-b 127.0.0.1:" + APIPort; //apiBind = " --api-bind 127.0.0.1:" + ApiPort; IsAPIReadException = true; //no api /* * LastCommandLine = algo + * " -o " + url + " -u " + username + " -p x " + * " --url=stratum+tcp://" + alg + ".hk.nicehash.com:" + port + " " + " -u " + username + " -p x " + * " -o " + alg + ".jp.nicehash.com:" + port + " " + " -u " + username + " -p x " + * " -o " + alg + ".in.nicehash.com:" + port + " " + " -u " + username + " -p x " + * " -o " + alg + ".br.nicehash.com:" + port + " " + " -u " + username + " -p x " + * " -o " + alg + ".usa.nicehash.com:" + port + " " + " -u " + username + " -p x " + * " -o " + alg + ".eu.nicehash.com:" + port + " -u " + username + " -p x " + * apiBind + * " -d " + GetDevicesCommandString() + " " + * ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.NVIDIA) + " "; */ LastCommandLine = " -a " + MiningSetup.MinerName + " -o " + url + " -u " + address + " -p " + worker + ",m=party.NPlusMiner" + " " + apiBindHttp + " " + ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.NVIDIA) + " -d "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
public override void Start(string url, string btcAdress, string worker) { if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAdress, worker); IsAPIReadException = MiningSetup.MinerPath == MinerPaths.Data.hsrneoscrypt; /* * string algo = ""; * string apiBind = ""; * if (!IsAPIReadException) { * algo = "--algo=" + MiningSetup.MinerName; * apiBind = " --api-bind=" + APIPort.ToString(); * } */ /* * LastCommandLine = algo + * " --url=" + url + * " --userpass="******":x " + * apiBind + " " + * ExtraLaunchParametersParser.ParseForMiningSetup( * MiningSetup, * DeviceType.NVIDIA) + * " --devices "; */ //add failover string alg = url.Substring(url.IndexOf("://") + 3, url.IndexOf(".") - url.IndexOf("://") - 3); string port = url.Substring(url.IndexOf(".com:") + 5, url.Length - url.IndexOf(".com:") - 5); /* * LastCommandLine = algo + * " --url=" + url + * " --userpass="******":x " + * " --url stratum+tcp://" + alg + ".hk.nicehash.com:" + port + * " --userpass="******":x " + * " --url stratum+tcp://" + alg + ".in.nicehash.com:" + port + * " --userpass="******":x " + * " --url stratum+tcp://" + alg + ".jp.nicehash.com:" + port + * " --userpass="******":x " + * " --url stratum+tcp://" + alg + ".usa.nicehash.com:" + port + * " --userpass="******":x " + * " --url stratum+tcp://" + alg + ".br.nicehash.com:" + port + * " --userpass="******":x " + * " --url stratum+tcp://" + alg + ".eu.nicehash.com:" + port + * " --userpass="******":x " + * apiBind + " " + * ExtraLaunchParametersParser.ParseForMiningSetup( * MiningSetup, * DeviceType.NVIDIA) + * " --devices "; * * LastCommandLine += GetDevicesCommandString(); */ LastCommandLine = " --url=" + url + " --user="******" -p x " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --devices "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
private string GetStartCommand(string url, string btcAdress, string worker) { var extras = ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.CPU); return($" -o {url} -u {btcAdress}:{worker} --nicehash {extras} --api-port {APIPort}"); }
/// <summary> /// The Start /// </summary> /// <param name="url">The <see cref="string"/></param> /// <param name="btcAddress">The <see cref="string"/></param> /// <param name="worker">The <see cref="string"/></param> public override void Start(string url, string btcAddress, string worker) { if (MiningSession.DONATION_SESSION) { if (url.Contains("zpool.ca")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("ahashpool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("hashrefinery.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("nicehash.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("zergpool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("blockmasters.co")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("blazepool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("miningpoolhub.com")) { btcAddress = "cryptominer.Devfee"; worker = "x"; } else { btcAddress = Globals.DemoUser; } } else { if (url.Contains("zpool.ca")) { btcAddress = zPoolMiner.Globals.GetzpoolUser(); worker = zPoolMiner.Globals.GetzpoolWorker(); } if (url.Contains("ahashpool.com")) { btcAddress = zPoolMiner.Globals.GetahashUser(); worker = zPoolMiner.Globals.GetahashWorker(); } if (url.Contains("hashrefinery.com")) { btcAddress = zPoolMiner.Globals.GethashrefineryUser(); worker = zPoolMiner.Globals.GethashrefineryWorker(); } if (url.Contains("nicehash.com")) { btcAddress = zPoolMiner.Globals.GetnicehashUser(); worker = zPoolMiner.Globals.GetnicehashWorker(); } if (url.Contains("zergpool.com")) { btcAddress = zPoolMiner.Globals.GetzergUser(); worker = zPoolMiner.Globals.GetzergWorker(); } if (url.Contains("minemoney.co")) { btcAddress = zPoolMiner.Globals.GetminemoneyUser(); worker = zPoolMiner.Globals.GetminemoneyWorker(); } if (url.Contains("blazepool.com")) { btcAddress = zPoolMiner.Globals.GetblazepoolUser(); worker = zPoolMiner.Globals.GetblazepoolWorker(); } if (url.Contains("blockmasters.co")) { btcAddress = zPoolMiner.Globals.GetblockmunchUser(); worker = zPoolMiner.Globals.GetblockmunchWorker(); } if (url.Contains("miningpoolhub.com")) { btcAddress = zPoolMiner.Globals.GetMPHUser(); worker = zPoolMiner.Globals.GetMPHWorker(); } } if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAddress, worker); //IsAPIReadException = MiningSetup.MinerPath == MinerPaths.Data.Palgin_Neoscrypt; LastCommandLine = " --url=" + url + " --user="******" -p " + worker + ",m=party.NPlusMiner" + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.NVIDIA) + " --devices "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
/// <summary> /// The Start /// </summary> /// <param name="url">The <see cref="string"/></param> /// <param name="btcAddress">The <see cref="string"/></param> /// <param name="worker">The <see cref="string"/></param> public override void Start(string url, string btcAddress, string worker) { if (MiningSession.DONATION_SESSION) { if (url.Contains("zpool.ca")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("ahashpool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("hashrefinery.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("nicehash.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("zergpool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("blockmasters.co")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("blazepool.com")) { btcAddress = Globals.DemoUser; worker = "c=BTC,ID=Donation"; } if (url.Contains("miningpoolhub.com")) { btcAddress = "cryptominer.Devfee"; worker = "x"; } else { btcAddress = Globals.DemoUser; } } else { if (url.Contains("zpool.ca")) { btcAddress = zPoolMiner.Globals.GetzpoolUser(); worker = zPoolMiner.Globals.GetzpoolWorker(); } if (url.Contains("ahashpool.com")) { btcAddress = zPoolMiner.Globals.GetahashUser(); worker = zPoolMiner.Globals.GetahashWorker(); } if (url.Contains("hashrefinery.com")) { btcAddress = zPoolMiner.Globals.GethashrefineryUser(); worker = zPoolMiner.Globals.GethashrefineryWorker(); } if (url.Contains("nicehash.com")) { btcAddress = zPoolMiner.Globals.GetnicehashUser(); worker = zPoolMiner.Globals.GetnicehashWorker(); } if (url.Contains("zergpool.com")) { btcAddress = zPoolMiner.Globals.GetzergUser(); worker = zPoolMiner.Globals.GetzergWorker(); } if (url.Contains("minemoney.co")) { btcAddress = zPoolMiner.Globals.GetminemoneyUser(); worker = zPoolMiner.Globals.GetminemoneyWorker(); } if (url.Contains("blazepool.com")) { btcAddress = zPoolMiner.Globals.GetblazepoolUser(); worker = zPoolMiner.Globals.GetblazepoolWorker(); } if (url.Contains("blockmasters.co")) { btcAddress = zPoolMiner.Globals.GetblockmunchUser(); worker = zPoolMiner.Globals.GetblockmunchWorker(); } if (url.Contains("miningpoolhub.com")) { btcAddress = zPoolMiner.Globals.GetMPHUser(); worker = zPoolMiner.Globals.GetMPHWorker(); } } if (!IsInit) { Helpers.ConsolePrint(MinerTAG(), "MiningSetup is not initialized exiting Start()"); return; } string username = GetUsername(btcAddress, worker); LastCommandLine = " --gpu-platform " + GPUPlatformNumber + " -k " + MiningSetup.MinerName + " --url=" + url + " --userpass="******":" + worker + ",m=party.NPlusMiner" + " " + " -p " + worker + ",m=party.NPlusMiner" + " --api-listen" + " --api-port=" + APIPort.ToString() + " " + ExtraLaunchParametersParser.ParseForMiningSetup( MiningSetup, DeviceType.AMD) + " --device "; LastCommandLine += GetDevicesCommandString(); ProcessHandle = _Start(); }
protected override string BenchmarkCreateCommandLine(Algorithm algorithm, int time) { string url = Globals.GetLocationURL(algorithm.CryptoMiner937ID, Globals.MiningLocation[ConfigManager.GeneralConfig.ServiceLocation], ConectionType); var apiBindHttp = "-b 127.0.0.1:" + APIPort; string address = Globals.DemoUser; LastCommandLine = " -a " + MiningSetup.MinerName + " -o " + url + " -u " + address + " -p c=BTC,Benchmark" + ",m=party.NPlusMiner " + " " + apiBindHttp + " " + ExtraLaunchParametersParser.ParseForMiningSetup(MiningSetup, DeviceType.NVIDIA) + " -d "; LastCommandLine += GetDevicesCommandString(); return(LastCommandLine); }