Removed "shareVariancePercent" option as its no longer useful

This commit is contained in:
Matt 2014-05-07 12:22:10 -06:00
parent b4784b1d9f
commit 74b6cc0052
2 changed files with 1 additions and 15 deletions

View File

@ -193,12 +193,6 @@ var pool = Stratum.createPool({
/* Sometimes you want the block hashes even for shares that aren't block candidates. */
"emitInvalidBlockHashes": false,
/* We use proper maximum algorithm difficulties found in the coin daemon source code. Most
miners/pools that deal with scrypt use a guesstimated one that is about 5.86% off from the
actual one. So here we can set a tolerable threshold for if a share is slightly too low
due to mining apps using incorrect max diffs and this pool using correct max diffs. */
"shareVariancePercent": 10,
/* Enable for client IP addresses to be detected when using a load balancer with TCP proxy
protocol enabled, such as HAProxy with 'send-proxy' param:
http://haproxy.1wt.eu/download/1.5/doc/configuration.txt */

View File

@ -244,15 +244,7 @@ var JobManager = module.exports = function JobManager(options){
difficulty = previousDifficulty;
}
else{
var offPercent = 100 - (shareDiff / difficulty) * 100;
//Check to see if low diff share is within acceptable configured range
if (offPercent > (options.shareVariancePercent || 0)){
return shareError([23, 'low difficulty share of ' + shareDiff]);
}
else{
_this.emit('log', 'warning', 'Share accepted a low diff ' + shareDiff + ' off by ' + offPercent.toFixed(2) + '%');
}
return shareError([23, 'low difficulty share of ' + shareDiff]);
}
}