mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Update to include roundHashes
Update to fix an API bug with identifiers Moving payments that fail due to $$ to retry in 30 minutes - Need to block if it's payment ID based.
This commit is contained in:
+9
-1
@@ -317,6 +317,13 @@ function updatePoolStats(poolType) {
|
||||
});
|
||||
}
|
||||
},
|
||||
function (callback) {
|
||||
debug(threadName + "Checking Influx for last 10min avg for miner count for pool stats");
|
||||
if (typeof(poolType) !== 'undefined') {
|
||||
return callback(null, global.database.getCache(poolType + "_stats").roundHashes || 0);
|
||||
}
|
||||
return callback(null, global.database.getCache("global_stats").roundHashes || 0);
|
||||
}
|
||||
], function (err, result) {
|
||||
if (typeof(poolType) === 'undefined') {
|
||||
poolType = 'global';
|
||||
@@ -329,7 +336,8 @@ function updatePoolStats(poolType) {
|
||||
lastBlockFound: result[4] || 0,
|
||||
totalBlocksFound: result[5] || 0,
|
||||
totalMinersPaid: result[6] || 0,
|
||||
totalPayments: result[7] || 0
|
||||
totalPayments: result[7] || 0,
|
||||
roundHashes: result[8] || 0
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user