Permalink
Browse files

- added support for monero

- changed nvidia miner to zec miner
  • Loading branch information...
1 parent 22af282 commit e6efb9e5bc8f8ffa61da67dbdd2bf781e3daaa44 p_bal committed Dec 28, 2016
Showing with 41 additions and 4 deletions.
  1. +1 −1 MiningPoolHubManager/Form1.Designer.cs
  2. +40 −3 MiningPoolHubManager/Form1.cs
@@ -317,7 +317,7 @@ private void InitializeComponent()
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(37, 13);
this.label8.TabIndex = 17;
- this.label8.Text = "v1.0.3";
+ this.label8.Text = "v1.0.4";
//
// label9
//
@@ -41,6 +41,7 @@ private void Form1_Load(object sender, EventArgs e)
coinBindingSource1.Add(new Coin("Influx", 20532, "hub.miningpoolhub.com", "darkcoin-mod", "07"));
coinBindingSource1.Add(new Coin("Litecoin", 20460, "hub.miningpoolhub.com", "vanilla", "01"));
coinBindingSource1.Add(new Coin("Maxcoin", 20461, "maxcoin.miningpoolhub.com", "maxcoin", "03"));
+ coinBindingSource1.Add(new Coin("Monero", 20580, "monero.miningpoolhub.com", "cryptonight", "24"));
coinBindingSource1.Add(new Coin("Myriadcoin (Groestl)", 20479, "myriadcoin-groestl.miningpoolhub.com", "myriadcoin-groestl", "05"));
coinBindingSource1.Add(new Coin("Myriadcoin (Skein)", 20528, "hub.miningpoolhub.com", "skeincoin", "16"));
coinBindingSource1.Add(new Coin("Myriadcoin (Yescrypt)", 20577, "hub.miningpoolhub.com", "yescrypt", "21"));
@@ -78,6 +79,7 @@ private void Form1_Load(object sender, EventArgs e)
algoBindingSource.Add(new Algo("Skein", 17016, "hub.miningpoolhub.com", "skeincoin"));
algoBindingSource.Add(new Algo("X11", 17007, "hub.miningpoolhub.com", "darkcoin-mod"));
algoBindingSource.Add(new Algo("Yescrypt", 17021, "hub.miningpoolhub.com", "yescrypt"));
+ algoBindingSource.Add(new Algo("Cryptonight", 17024, "cryptonight-hub.miningpoolhub.com", "cryptonight"));
loadFromXML();
/*
@@ -164,8 +166,8 @@ private void startButton_Click(object sender, EventArgs e)
}
else if (gpuNVIDIARadioButton.Checked)
{
- workingDirectory = Environment.CurrentDirectory + "\\nheqminer_zec\\";
- fileName = "nheqminer.exe";
+ workingDirectory = Environment.CurrentDirectory + "\\zecminer\\";
+ fileName = "miner.exe";
}
break;
case "Ethereum":
@@ -184,6 +186,19 @@ private void startButton_Click(object sender, EventArgs e)
fileName = "EthDcrMiner64.exe";
}
break;
+ case "Monero":
+ case "Cryptonight":
+ if (gpuAMDRadioButton.Checked)
+ {
+ workingDirectory = Environment.CurrentDirectory + "\\claymore_monero\\";
+ fileName = "NsGpuCNMiner.exe";
+ }
+ else if (gpuNVIDIARadioButton.Checked)
+ {
+ workingDirectory = Environment.CurrentDirectory + "\\ccminer_monero\\";
+ fileName = "ccminer.exe";
+ }
+ break;
default:
workingDirectory = Environment.CurrentDirectory + "\\sgminer\\";
fileName = "sgminer.exe";
@@ -267,6 +282,8 @@ private void computeParameter(Coin coin, Server server, Algo algo)
else
name = algo.name;
+ if (!name.Equals("Monero") || !name.Equals("Cryptonight"))
+ label1.Text = "Workername:";
switch (name)
{
case "Zcash":
@@ -284,7 +301,7 @@ private void computeParameter(Coin coin, Server server, Algo algo)
}
else if (gpuNVIDIARadioButton.Checked)
{
- paramText = "-l " + serverLocation + "." + host + ":" + port + " -u " + loginTextField.Text + " -p " + passwordTextField.Text + " -cd 0";
+ paramText = "--server " + serverLocation + "." + host + " --port " + port + " --user " + loginTextField.Text + " --pass " + passwordTextField.Text;
}
else if (gpuAMDRadioButton.Checked)
{
@@ -310,6 +327,26 @@ private void computeParameter(Coin coin, Server server, Algo algo)
paramText = "-epool " + serverLocation + "." + host + ":" + port + " -ewal " + loginTextField.Text + " -epsw " + passwordTextField.Text + " -allpools 1";
}
break;
+ case "Monero":
+ case "Cryptonight":
+ cpuRadioButton.Enabled = false;
+ gpuNVIDIARadioButton.Enabled = false;
+ gpuAMDRadioButton.Enabled = true;
+ sgminerRadioButton.Enabled = false;
+ label1.Text = "Monero address:";
+ resultLabel.Text = "Warning: The Monero address has to be added in the pools wallet first. Afterwards use Monero address in Monero address-field instead of login.workername!";
+ if (!cpuRadioButton.Checked && !gpuAMDRadioButton.Checked && !gpuNVIDIARadioButton.Checked)
+ gpuAMDRadioButton.Checked = true;
+ if (gpuNVIDIARadioButton.Checked)
+ {
+ // TODO: nvidia miner should be added here
+ paramText = "-epool " + serverLocation + "." + host + ":" + port + " -ewal " + loginTextField.Text + " -epsw " + passwordTextField.Text + " -allpools 1";
+ }
+ else if (gpuAMDRadioButton.Checked)
+ {
+ paramText = "-o stratum+tcp://" + serverLocation + "." + host + ":" + port + " -u " + loginTextField.Text + " -p " + passwordTextField.Text + " -nofee 1";
+ }
+ break;
case "Siacoin":
case "Sia":
cpuRadioButton.Enabled = false;

0 comments on commit e6efb9e

Please sign in to comment.