Update to fix roundHashes not being set as part of the dataset.
This commit is contained in:
parent
a5d99f3401
commit
b9cf9fe3e3
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue