diff --git a/README.md b/README.md index e668861..da4b2ed 100644 --- a/README.md +++ b/README.md @@ -347,12 +347,6 @@ Description of options: /* 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": 2, - /* 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/libs/shareProcessor.js b/libs/shareProcessor.js index 62d6444..aeeda49 100644 --- a/libs/shareProcessor.js +++ b/libs/shareProcessor.js @@ -19,6 +19,7 @@ module.exports = function(logger, poolConfig){ var redisConfig = poolConfig.redis; var coin = poolConfig.coin.name; + var forkId = process.env.forkId; var logSystem = 'Pool'; var logComponent = coin; @@ -51,7 +52,8 @@ module.exports = function(logger, poolConfig){ doesn't overwrite an existing entry, and timestamp as score lets us query shares from last X minutes to generate hashrate for each worker and pool. */ var dateNow = Date.now(); - redisCommands.push(['zadd', coin + '_hashrate', dateNow / 1000 | 0, [shareData.difficulty, shareData.worker, dateNow].join(':')]); + var hashrateData = [shareData.difficulty, shareData.worker, dateNow]; + redisCommands.push(['zadd', coin + '_hashrate', dateNow / 1000 | 0, hashrateData.join(':')]); } else{ redisCommands.push(['hincrby', coin + '_stats', 'invalidShares', 1]); diff --git a/pool_configs/litecoin_example.json b/pool_configs/litecoin_example.json index e9512b8..ed5f414 100644 --- a/pool_configs/litecoin_example.json +++ b/pool_configs/litecoin_example.json @@ -14,7 +14,6 @@ "jobRebroadcastTimeout": 55, "connectionTimeout": 600, "emitInvalidBlockHashes": false, - "shareVariancePercent": 15, "tcpProxyProtocol": false,