mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-11-27 11:03:58 +01:00
Update to fix roundHashes not being set as part of the dataset.
This commit is contained in:
@@ -255,6 +255,11 @@ function Database(){
|
|||||||
json_cache.totalHashes = cachedData[key].totalHashes;
|
json_cache.totalHashes = cachedData[key].totalHashes;
|
||||||
json_cache.goodShares = cachedData[key].goodShares;
|
json_cache.goodShares = cachedData[key].goodShares;
|
||||||
}
|
}
|
||||||
|
if (cachedData[key].hasOwnProperty('roundHashes') && json_cache.hasOwnProperty('roundHashes')){
|
||||||
|
json_cache.roundHashes += cachedData[key].roundHashes;
|
||||||
|
} else {
|
||||||
|
json_cache.roundHashes = cachedData[key].roundHashes;
|
||||||
|
}
|
||||||
txn.putString(global.database.cacheDB, key, JSON.stringify(json_cache));
|
txn.putString(global.database.cacheDB, key, JSON.stringify(json_cache));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user