示例#1
0
        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;

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

            //non-default, but "official" miners for Vertcoin and Darkcoin
            miner = factory.RegisterMiner("Vertminer", "Vertminer", true);
            miner = factory.RegisterMiner("DarkcoinSGMiner", "SGMiner", true);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        private static void RegisterBuiltInAgorithms()
        {
            MinerFactory factory = MinerFactory.Instance;

            CoinAlgorithm algorithm = factory.RegisterAlgorithm(AlgorithmNames.SHA256, AlgorithmFullNames.SHA256, CoinAlgorithm.AlgorithmFamily.SHA2);

            algorithm.DefaultMiner = MinerNames.BFGMiner;
            algorithm.BuiltIn      = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.Scrypt, AlgorithmFullNames.Scrypt, CoinAlgorithm.AlgorithmFamily.Scrypt);
            algorithm.DefaultMiner = MinerNames.BFGMiner;
            algorithm.MinerArguments[MinerNames.BFGMiner] = AlgorithmParameter.Scrypt;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.Keccak, AlgorithmFullNames.Keccak, CoinAlgorithm.AlgorithmFamily.SHA3);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmKeccak;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.Groestl, AlgorithmFullNames.Groestl, CoinAlgorithm.AlgorithmFamily.SHA3);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmGroestlcoin;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.ScryptN, AlgorithmFullNames.ScryptN, CoinAlgorithm.AlgorithmFamily.Scrypt);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmScryptNFactor11;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.ScryptJane, AlgorithmFullNames.ScryptJane, CoinAlgorithm.AlgorithmFamily.Scrypt);
            algorithm.DefaultMiner = MinerNames.KalrothSJCGMiner;
            algorithm.MinerArguments[MinerNames.KalrothSJCGMiner] = AlgorithmParameter.ScryptJane;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.Quark, AlgorithmFullNames.Quark, CoinAlgorithm.AlgorithmFamily.Unknown);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmQuarkcoin;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.X11, AlgorithmFullNames.X11, CoinAlgorithm.AlgorithmFamily.Unknown);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmX11;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.X13, AlgorithmFullNames.X13, CoinAlgorithm.AlgorithmFamily.Unknown);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmX13;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.X14, AlgorithmFullNames.X14, CoinAlgorithm.AlgorithmFamily.Unknown);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmX14;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.X15, AlgorithmFullNames.X15, CoinAlgorithm.AlgorithmFamily.Unknown);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmX15;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.NeoScrypt, AlgorithmFullNames.NeoScrypt, CoinAlgorithm.AlgorithmFamily.Scrypt);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmNeoScrypt;
            algorithm.BuiltIn = true;

            algorithm = factory.RegisterAlgorithm(AlgorithmNames.Lyra2RE, AlgorithmFullNames.Lyra2RE, CoinAlgorithm.AlgorithmFamily.Lyra2);
            algorithm.DefaultMiner = MinerNames.SGMiner5;
            algorithm.MinerArguments[MinerNames.SGMiner5] = AlgorithmParameter.AlgorithmLyra2RE;
            algorithm.BuiltIn = true;
        }