/// <summary> /// Starts the miner process /// </summary> /// <returns></returns> protected virtual BPMProcess StartProcess() { var process = new BPMProcess(); IsMining = true; process.Start(MinerWorkingDirectory, MinerArguments, MinerFileName, Hardware == HardwareType.AMD, MinerBaseType); process.MinerProcess.Exited += MinerExited; return(process); }
public override void Start() { // Override the standard StartProcess since this miner requires a configuration file vs command line GenerateLyclConfig(); MinerProcess = new BPMProcess(); IsMining = true; MinerProcess.Start(MinerWorkingDirectory, MinerConfigArguments, MinerFileName, Hardware == HardwareType.AMD, MinerBaseType); MinerProcess.MinerProcess.Exited += MinerExited; }
/// <summary> /// Starts the miner process /// </summary> /// <returns></returns> protected virtual BPMProcess StartProcess() { var process = new BPMProcess(); IsMining = true; FormatPerMinerCoinCombo(); ObservableCollection <AccountMinerTypeExtraParams> AccountMinerTypeExtraParamsList = (ObservableCollection <AccountMinerTypeExtraParams>)Application.Current.Properties["AccountMinerTypeExtraParamsList"]; AccountMinerTypeExtraParams accountMinerTypeExtraParams = AccountMinerTypeExtraParamsList.First(x => x.MinerBaseType == MinerBaseType); if (accountMinerTypeExtraParams != null && accountMinerTypeExtraParams.ExtraParams != String.Empty) { // Add Extra Params MinerArguments = String.Format("{0} {1}", MinerArguments, accountMinerTypeExtraParams.ExtraParams); } process.Start(MinerWorkingDirectory, MinerArguments, MinerFileName, Hardware == HardwareType.AMD, MinerBaseType); process.MinerProcess.Exited += MinerExited; return(process); }