mirror of https://github.com/BTCPrivate/z-nomp.git
Add blockfinder to database (#22)
This commit is contained in:
parent
c07a339c56
commit
d255083e1c
|
@ -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].join(':')]);
|
||||
redisCommands.push(['sadd', coin + ':blocksPending', [shareData.blockHash, shareData.txHash, shareData.height, shareData.worker].join(':')]);
|
||||
redisCommands.push(['hincrby', coin + ':stats', 'validBlocks', 1]);
|
||||
}
|
||||
else if (shareData.blockHash){
|
||||
|
|
Loading…
Reference in New Issue