Update to fix roundHashes not being set as part of the dataset.

master
Alexander Blair 7 years ago
parent a5d99f3401
commit b9cf9fe3e3

@ -255,6 +255,11 @@ function Database(){
json_cache.totalHashes = cachedData[key].totalHashes;
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));
}
}

Loading…
Cancel
Save