Skip to content

Commit

Permalink
Add OOTB support for Pascal
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoolls committed Jan 15, 2018
1 parent d65a039 commit 2946d9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions MultiMiner.Engine/Data/AlgorithmParameter.cs
Expand Up @@ -17,5 +17,6 @@ class AlgorithmParameter
public const string AlgorithmEthash = "--algorithm ethash";
public const string AlgorithmCryptoNight = "--algorithm cryptonight";
public const string AlgorithmEquihash = "--algorithm equihash";
public const string AlgorithmPascal = "--algorithm pascal";
}
}
1 change: 1 addition & 0 deletions MultiMiner.Engine/Data/MinerNames.cs
Expand Up @@ -12,5 +12,6 @@ public class MinerNames
public const string AZNSGMiner = "AZNSGMiner";
public const string MaxcoinCGMiner = "MaxcoinCGMiner";
public const string SGMinerGM = "SGMinerGM";
public const string SGMinerPascal = "SGMinerPascal";
}
}
8 changes: 8 additions & 0 deletions MultiMiner.Engine/MiningEngine.cs
Expand Up @@ -197,6 +197,13 @@ private static void RegisterBuiltInAgorithms()
algorithm.DefaultMiner = MinerNames.SGMinerGM;
algorithm.MinerArguments[MinerNames.SGMinerGM] = AlgorithmParameter.AlgorithmEquihash;
algorithm.BuiltIn = true;

algorithm = factory.RegisterAlgorithm(AlgorithmNames.Pascal, AlgorithmFullNames.Pascal);
algorithm.PoolMultiplier = 1;
algorithm.DifficultyMultiplier = Math.Pow(2, 32);
algorithm.DefaultMiner = MinerNames.SGMinerPascal;
algorithm.MinerArguments[MinerNames.SGMinerPascal] = AlgorithmParameter.AlgorithmPascal;
algorithm.BuiltIn = true;
}

private static void RegisterMiners()
Expand All @@ -212,6 +219,7 @@ private static void RegisterMiners()
factory.RegisterMiner(MinerNames.MaxcoinCGMiner, MinerNames.CGMiner, true);
factory.RegisterMiner(MinerNames.SGMiner5, MinerNames.SGMiner, true);
factory.RegisterMiner(MinerNames.SGMinerGM, MinerNames.SGMiner, true);
factory.RegisterMiner(MinerNames.SGMinerPascal, MinerNames.SGMiner, true);

string minersDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Miners");
factory.RegisterMiners(minersDirectory);
Expand Down
2 changes: 2 additions & 0 deletions MultiMiner.Xgminer/Data/AlgorithmNames.cs
Expand Up @@ -19,6 +19,7 @@ public static class AlgorithmNames
public const string Ethash = "Ethash";
public const string CryptoNight = "CryptoNight";
public const string Equihash = "Equihash";
public const string Pascal = "Pascal";
}

public static class AlgorithmFullNames
Expand All @@ -40,6 +41,7 @@ public static class AlgorithmFullNames
public const string Ethash = "Ethash";
public const string CryptoNight = "CryptoNight";
public const string Equihash = "Equihash";
public const string Pascal = "Pascal";
}

//how difficult is each algo on the same hardware relative to SHA256
Expand Down

0 comments on commit 2946d9d

Please sign in to comment.