Skip to content
Snippets Groups Projects
Commit efc9935c authored by leonidas's avatar leonidas
Browse files

No commit message

No commit message
parent e0484625
No related branches found
No related tags found
No related merge requests found
...@@ -11,17 +11,8 @@ ...@@ -11,17 +11,8 @@
result += "export pool_address1=cryptonight.usa.nicehash.com:3355;"; result += "export pool_address1=cryptonight.usa.nicehash.com:3355;";
result += "export wallet1=" + document.getElementById("wallet1").value +";"; result += "export wallet1=" + getField("wallet1") +";";
result+="export nicehash1=true;" result+="export nicehash1=true;"
/*if (document.getElementById("enable_sec_pool").checked)
{
result += "pool_address2=" +document.getElementById("pool_address2").value +"\r\n";
result += "wallet2=" + document.getElementById("wallet2").value +"\n";
if (document.getElementById("nicehash2").checked) result+="nicehash2=true\r\n"
else result+="nicehash2=false\r\n";
}
*/
result+=getEpilog(); result+=getEpilog();
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
var result= getProlog(); var result= getProlog();
result += "export pool_address1=" + document.getElementById("pool1").value +";"; result += "export pool_address1=" + getField("pool1") +";";
result += "export wallet1=" + document.getElementById("wallet1").value +";"; result += "export wallet1=" + getField("wallet1") +";";
if(document.getElementById("pool1").value.toLowerCase().includes("nicehash")) if(getField("pool1").toLowerCase().includes("nicehash"))
{ {
result+="export nicehash1=true;" result+="export nicehash1=true;"
} }
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
result+="export nicehash1=false;" result+="export nicehash1=false;"
} }
if (document.getElementById("pool2").value.length>0 != document.getElementById("wallet2").value.length>0) if (getField("pool2").length>0 != getField("wallet2").length>0)
{ {
alert("Either leave the secondary pool completely empty or fill both wallet- and pool-fields!"); alert("Either leave the secondary pool completely empty or fill both wallet- and pool-fields!");
return; return;
} }
result += "export pool_address2=" + document.getElementById("pool2").value +";"; result += "export pool_address2=" + getField("pool2") +";";
result += "export wallet2=" + document.getElementById("wallet2").value +";"; result += "export wallet2=" + getField("wallet2") +";";
if(document.getElementById("pool2").value.toLowerCase().includes("nicehash")) if(getField("pool2").toLowerCase().includes("nicehash"))
{ {
result+="export nicehash2=true;" result+="export nicehash2=true;"
} }
...@@ -41,12 +41,7 @@ ...@@ -41,12 +41,7 @@
{ {
result+="export nicehash2=false;" result+="export nicehash2=false;"
} }
result+=getEpilog(); result+=getEpilog();
document.getElementById("result").value = result; document.getElementById("result").value = result;
...@@ -110,8 +105,8 @@ ...@@ -110,8 +105,8 @@
coins in your wallet.</li> coins in your wallet.</li>
<li>Reward method PPS or PPLNS? With PPLNS the miners get their share <li>Reward method PPS or PPLNS? With PPLNS the miners get their share
only once the pool finds a block, so for small pools it might take only once the pool finds a block, so for small pools it might take
several days until you can see a non-zero balance for your wallet on several days until you can see a non-zero pending balance for your
the pool's website.</li> wallet on the pool's website.</li>
<li>You'll need to setup a wallet first. For Monero probably the <li>You'll need to setup a wallet first. For Monero probably the
easiest way to get started is <a href="mymonero.com">mymonero.com</a>.</li> easiest way to get started is <a href="mymonero.com">mymonero.com</a>.</li>
</ul> </ul>
...@@ -133,7 +128,7 @@ ...@@ -133,7 +128,7 @@
but once you set it up it's free money :-)</p> but once you set it up it's free money :-)</p>
<p>Note: Cryptocurrencies are notorious for being targets of spectacular <p>Note: Cryptocurrencies are notorious for being targets of spectacular
hacks - even Nicehash.com was hacked once. <strong>The more hacks - even Nicehash.com was hacked once. <strong>The more
cryptocurrency you accumulate, the more important it gets to educate cryptocurrency you accumulate, the more important it is to educate
yourself about the possible security threats!</strong></p> yourself about the possible security threats!</strong></p>
<h1>Setup the Azure Batch-Service </h1> <h1>Setup the Azure Batch-Service </h1>
<p>Note: Azure calls a group of virtual machines within the <p>Note: Azure calls a group of virtual machines within the
...@@ -189,9 +184,9 @@ ...@@ -189,9 +184,9 @@
<p>For mining you generally want to use the 'F'-Type of virtual machines <p>For mining you generally want to use the 'F'-Type of virtual machines
because they are optimized for computing and most profitable for because they are optimized for computing and most profitable for
mining. If you are mining to a Nicehash-pool i recommend leaving the mining. If you are mining to a Nicehash-pool i recommend leaving the
node-size at 16 cores (see also my notes on the Nicehash-difficulty at node-size at 16 cores (see my notes on the Nicehash-difficulty at the
the end of this page). If you are mining to a different mining-pool end of this page). If you are mining to a different mining-pool you
you can also choose e.g. F4 and set the number of nodes to 5 to get a can also choose e.g. F4 and set the number of nodes to 5 to get a
total of 20 cores (the default maximum quota for the number of total of 20 cores (the default maximum quota for the number of
low-priority cores). Note that by default azure will disable your low-priority cores). Note that by default azure will disable your
account for the rest of the month once you have consumed your free account for the rest of the month once you have consumed your free
...@@ -209,8 +204,8 @@ ...@@ -209,8 +204,8 @@
<ul> <ul>
<li>Wallet:</li> <li>Wallet:</li>
<ul> <ul>
<li>e.g. your personal Nicehash-wallet, it should look like this: <li>e.g. your personal Nicehash-wallet, it should look somewhat
<strong>3FZd4cJi7E75haNcUM5ASx6x1k1DRWWjBZ</strong></li> similar to this: <strong>3FZd4cJi7E75haNcUM5ASx6x1k1DRWWjBZ</strong></li>
<li>&nbsp;<input name="wallet1" size="75" id="wallet1" type="text"></li> <li>&nbsp;<input name="wallet1" size="75" id="wallet1" type="text"></li>
</ul> </ul>
</ul> </ul>
...@@ -221,7 +216,7 @@ ...@@ -221,7 +216,7 @@
<ul> <ul>
</ul> </ul>
<ul> <ul>
<li>e.g. the nicehash pool-server: <strong>cryptonight.eu.nicehash.com:3355</strong></li> <li>e.g. the Nicehash pool-server: <strong>cryptonight.eu.nicehash.com:3355</strong></li>
<li> <input name="pool1" size="30" id="pool1" type="text"></li> <li> <input name="pool1" size="30" id="pool1" type="text"></li>
</ul> </ul>
<ul> <ul>
...@@ -239,7 +234,8 @@ ...@@ -239,7 +234,8 @@
<ul> <ul>
<li>Wallet:</li> <li>Wallet:</li>
<ul> <ul>
<li>e.g. your personal Monero-wallet, it should look like this: <strong>4999aeniCU9Ug67vs7yvyJTSkxVUZRirUYUerT66fqzoYMhiShFLBqZHmFxmPD6oABafM5cVKc77yj3Fypvi9CDRTYEvDPL</strong></li> <li>e.g. your personal Monero-wallet, it should look somewhat
similar to this: <strong>4999aeniCU9Ug67vs7yvyJTSkxVUZRirUYUerT66fqzoYMhiShFLBqZHmFxmPD6oABafM5cVKc77yj3Fypvi9CDRTYEvDPL</strong></li>
</ul> </ul>
<ul> <ul>
<li>&nbsp;<input name="wallet2" size="75" id="wallet2" type="text"></li> <li>&nbsp;<input name="wallet2" size="75" id="wallet2" type="text"></li>
......
...@@ -10,3 +10,8 @@ function getEpilog() ...@@ -10,3 +10,8 @@ function getEpilog()
return "wget https://raw.githubusercontent.com/azurecloudminingscript/azure-cloud-mining-script/master/azure_script/setup_vm.sh ; chmod u+x setup_vm.sh ; ./setup_vm.sh\""; return "wget https://raw.githubusercontent.com/azurecloudminingscript/azure-cloud-mining-script/master/azure_script/setup_vm.sh ; chmod u+x setup_vm.sh ; ./setup_vm.sh\"";
} }
function getField(f)
{
return document.getElementById(f).value.trim();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment