diff --git a/README.md b/README.md index 7e16e18..6b1f6f6 100644 --- a/README.md +++ b/README.md @@ -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 */ diff --git a/lib/jobManager.js b/lib/jobManager.js index 3c9aab2..7935ef0 100644 --- a/lib/jobManager.js +++ b/lib/jobManager.js @@ -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]); } }