|
|
|
@ -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));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|