stratum/stats: handle the benchmark miner user

and update benchmarks instructions
This commit is contained in:
Tanguy Pruvot 2016-05-20 21:32:27 +02:00
parent 7ae4a67ab0
commit d262f87bad
2 changed files with 15 additions and 11 deletions

View file

@ -308,10 +308,7 @@ bool client_ask_stats(YAAMP_CLIENT *client)
{
int id;
if (!client->stats) return false;
if (!strstr(client->password, "stats")) return false;
id = client_ask(client, "client.get_stats", "[]");
//id = client_ask(client, "client.get_version", "[\"stats\"]");
return true;
}

View file

@ -10,19 +10,26 @@
-o stratum+tcp://<?= YAAMP_STRATUM_URL ?>:&lt;PORT&gt; -a &lt;algo&gt; -u &lt;wallet_adress&gt; -p stats
</pre>
<p style="width: 700px;">You can download the compatible version of ccminer here :</p>
<ul>
<li><a href="http://ccminer.org/preview/ccminer.exe">http://ccminer.org/preview/ccminer.exe</a> (x86 CUDA 6.5)</li>
<li><a href="http://ccminer.org/preview/ccminer-x64.exe">http://ccminer.org/preview/ccminer-x64.exe</a> (x64 CUDA 7.5)</li>
</ul>
<p style="width: 700px;">
With this option enabled, the stratum will ask for device stats each 50 shares (for 4 times max).<br/>
<br/>
You can combine this miner option with other ones, like the <a href="/site/diff">pool difficulty</a> with a comma.
You can combine this miner option with other ones, like the <a href="/site/diff">pool difficulty</a> with a comma.<br/>
<br/>
You can also use the generic username '<b>benchmark</b>' if you don't have a valid address,<br/>
but in this case you will mine without reward (like a donator).
</p>
<p style="width: 700px;">
Please note only the first device stats will be submitted on multi gpus systems.<br/>
If you want to monitor a different card with ccminer, use the <b>--device</b> parameter, like <b>-d 1</b>
</p>
<p style="margin-bottom: 0; font-weight: bold;">You can download compatible versions of ccminer here :</p>
<ul>
<li><a href="https://github.com/tpruvot/ccminer/releases" target="_blank">https://github.com/tpruvot/ccminer/releases</a></li>
<li><a href="https://github.com/KlausT/ccminer/releases" target="_blank">https://github.com/KlausT/ccminer/releases</a></li>
</ul>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>