Removed "shareVariancePercent" option as its no longer useful
This commit is contained in:
parent
e72af00507
commit
d8444e6a6c
|
@ -347,12 +347,6 @@ Description of options:
|
||||||
/* Sometimes you want the block hashes even for shares that aren't block candidates. */
|
/* Sometimes you want the block hashes even for shares that aren't block candidates. */
|
||||||
"emitInvalidBlockHashes": false,
|
"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
|
/* 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:
|
protocol enabled, such as HAProxy with 'send-proxy' param:
|
||||||
http://haproxy.1wt.eu/download/1.5/doc/configuration.txt */
|
http://haproxy.1wt.eu/download/1.5/doc/configuration.txt */
|
||||||
|
|
|
@ -19,6 +19,7 @@ module.exports = function(logger, poolConfig){
|
||||||
var redisConfig = poolConfig.redis;
|
var redisConfig = poolConfig.redis;
|
||||||
var coin = poolConfig.coin.name;
|
var coin = poolConfig.coin.name;
|
||||||
|
|
||||||
|
|
||||||
var forkId = process.env.forkId;
|
var forkId = process.env.forkId;
|
||||||
var logSystem = 'Pool';
|
var logSystem = 'Pool';
|
||||||
var logComponent = coin;
|
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
|
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. */
|
generate hashrate for each worker and pool. */
|
||||||
var dateNow = Date.now();
|
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{
|
else{
|
||||||
redisCommands.push(['hincrby', coin + '_stats', 'invalidShares', 1]);
|
redisCommands.push(['hincrby', coin + '_stats', 'invalidShares', 1]);
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
"jobRebroadcastTimeout": 55,
|
"jobRebroadcastTimeout": 55,
|
||||||
"connectionTimeout": 600,
|
"connectionTimeout": 600,
|
||||||
"emitInvalidBlockHashes": false,
|
"emitInvalidBlockHashes": false,
|
||||||
"shareVariancePercent": 15,
|
|
||||||
|
|
||||||
"tcpProxyProtocol": false,
|
"tcpProxyProtocol": false,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue