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:
Alexander Blair
2017-02-15 18:49:12 -08:00
parent aa0353868c
commit bf730fddbe
4 changed files with 38 additions and 8 deletions
+9 -1
View File
@@ -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
});
});
}