mirror of https://github.com/BTCPrivate/z-nomp.git
Allow shares of float difficulties to be inserted into redis instead of just integers.
This commit is contained in:
parent
4a651dec89
commit
514d04d6ad
|
@ -54,7 +54,7 @@ module.exports = function(logger, poolConfig){
|
|||
var redisCommands = [];
|
||||
|
||||
if (isValidShare){
|
||||
redisCommands.push(['hincrby', coin + '_shares:roundCurrent', shareData.worker, shareData.difficulty]);
|
||||
redisCommands.push(['hincrbyfloat', coin + '_shares:roundCurrent', shareData.worker, shareData.difficulty]);
|
||||
redisCommands.push(['hincrby', coin + '_stats', 'validShares', 1]);
|
||||
|
||||
/* Stores share diff, worker, and unique value with a score that is the timestamp. Unique value ensures it
|
||||
|
|
Loading…
Reference in New Issue