Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        /// <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);
        }