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:
parent
7ea43d2cc7
commit
df8785453f
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue