Update shareProcessor.js

For latest block page we need more data in redis, we can pull this from explorer api, but this makes it a slow query
This commit is contained in:
sennevb 2017-01-29 14:34:48 +01:00 committed by GitHub
parent 7ea43d2cc7
commit df8785453f
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ module.exports = function(logger, poolConfig){
if (isValidBlock){
redisCommands.push(['rename', coin + ':shares:roundCurrent', coin + ':shares:round' + shareData.height]);
redisCommands.push(['sadd', coin + ':blocksPending', [shareData.blockHash, shareData.txHash, shareData.height, shareData.worker].join(':')]);
redisCommands.push(['sadd', coin + ':blocksPending', [shareData.blockHash, shareData.txHash, shareData.height, shareData.worker, Round.Reward, dateNow].join(':')]);
redisCommands.push(['hincrby', coin + ':stats', 'validBlocks', 1]);
}
else if (shareData.blockHash){