Removed "shareVariancePercent" option as its no longer useful
This commit is contained in:
parent
b4784b1d9f
commit
74b6cc0052
@ -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 */
|
||||
|
||||
@ -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]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user