fix history cache

This commit is contained in:
Ivan Socolsky 2016-09-30 11:16:33 -03:00
parent 583e0a560c
commit 968dea6eb1
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
2 changed files with 3 additions and 3 deletions

View File

@ -421,8 +421,8 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
var endingTxid = confirmedTxs[0] ? confirmedTxs[0].txid : null;
var endingTs = confirmedTxs[0] ? confirmedTxs[0].time : null;
// First update
progressFn(txsFromLocal);
wallet.completeHistory = txsFromLocal;
function getNewTxs(newTxs, skip, cb) {
@ -431,7 +431,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
newTxs = newTxs.concat(processNewTxs(wallet, lodash.compact(res)));
progressFn(newTxs);
progressFn(newTxs.concat(txsFromLocal));
skip = skip + requestLimit;