コード例 #1
0
ファイル: MiningEngine.cs プロジェクト: zwbf/MultiMiner
        private static void RegisterMiners()
        {
            MinerFactory factory = MinerFactory.Instance;

            factory.RegisterMiner(MinerNames.BFGMiner, MinerNames.BFGMiner, false);
            factory.RegisterMiner(MinerNames.KalrothSJCGMiner, MinerNames.CGMiner, true);
            factory.RegisterMiner(MinerNames.SGMiner, MinerNames.SGMiner, true);
            factory.RegisterMiner(MinerNames.LBSPHSGMiner, MinerNames.SGMiner, true);
            factory.RegisterMiner(MinerNames.AZNSGMiner, MinerNames.SGMiner, true);
            factory.RegisterMiner(MinerNames.SPHSGMiner, MinerNames.SGMiner, true);
            factory.RegisterMiner(MinerNames.MaxcoinCGMiner, MinerNames.CGMiner, true);
            factory.RegisterMiner(MinerNames.SGMiner5, MinerNames.SGMiner, true);

            string minersDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Miners");

            factory.RegisterMiners(minersDirectory);
        }
コード例 #2
0
ファイル: MiningEngine.cs プロジェクト: hoanvls/MultiMiner
        private static void RegisterMiners()
        {
            MinerFactory factory = MinerFactory.Instance;

            //BFGMiner as the default SHA-2 and Scrypt miner
            MinerDescriptor miner = factory.RegisterMiner("BFGMiner", "BFGMiner", false);

            factory.DefaultMiners[CoinAlgorithm.SHA256] = miner;
            factory.DefaultMiners[CoinAlgorithm.Scrypt] = miner;

            //Kalroth SJ-CGMiner as the default Scrypt-Jane miner
            miner = factory.RegisterMiner("KalrothSJCGMiner", "CGMiner", true);
            factory.DefaultMiners[CoinAlgorithm.ScryptJane] = miner;

            //SGMiner is the default Scrypt-N miner
            miner = factory.RegisterMiner("SGMiner", "SGMiner", true);
            factory.DefaultMiners[CoinAlgorithm.ScryptN] = miner;

            //LasyBear SPH-SGMiner as the default X11, X13 miner
            miner = factory.RegisterMiner("LBSPHSGMiner", "SGMiner", true);
            factory.DefaultMiners[CoinAlgorithm.X11] = miner;
            factory.DefaultMiners[CoinAlgorithm.X13] = miner;

            //AZNBoy SGMiner as the default X14, X15 miner
            miner = factory.RegisterMiner("AZNSGMiner", "SGMiner", true);
            factory.DefaultMiners[CoinAlgorithm.X14] = miner;
            factory.DefaultMiners[CoinAlgorithm.X15] = miner;

            //SPH-SGMiner as the default Quark and Groestl miner
            miner = factory.RegisterMiner("SPHSGMiner", "SGMiner", true);
            factory.DefaultMiners[CoinAlgorithm.Quark]   = miner;
            factory.DefaultMiners[CoinAlgorithm.Groestl] = miner;

            //MaxcoinCGMiner is the default Keccak miner
            miner = factory.RegisterMiner("MaxcoinCGMiner", "CGMiner", true);
            factory.DefaultMiners[CoinAlgorithm.Keccak] = miner;

            string minersDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Miners");

            factory.RegisterMiners(minersDirectory);
        }