mirror of https://github.com/BTCPrivate/copay.git
fix history cache
This commit is contained in:
parent
583e0a560c
commit
968dea6eb1
|
@ -171,7 +171,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data){
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
|
||||||
$scope.wallet = profileService.getWallet(data.stateParams.walletId);
|
$scope.wallet = profileService.getWallet(data.stateParams.walletId);
|
||||||
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
|
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
|
||||||
|
|
|
@ -421,8 +421,8 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
var endingTxid = confirmedTxs[0] ? confirmedTxs[0].txid : null;
|
var endingTxid = confirmedTxs[0] ? confirmedTxs[0].txid : null;
|
||||||
var endingTs = confirmedTxs[0] ? confirmedTxs[0].time : null;
|
var endingTs = confirmedTxs[0] ? confirmedTxs[0].time : null;
|
||||||
|
|
||||||
|
|
||||||
// First update
|
// First update
|
||||||
|
progressFn(txsFromLocal);
|
||||||
wallet.completeHistory = txsFromLocal;
|
wallet.completeHistory = txsFromLocal;
|
||||||
|
|
||||||
function getNewTxs(newTxs, skip, cb) {
|
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)));
|
newTxs = newTxs.concat(processNewTxs(wallet, lodash.compact(res)));
|
||||||
|
|
||||||
progressFn(newTxs);
|
progressFn(newTxs.concat(txsFromLocal));
|
||||||
|
|
||||||
skip = skip + requestLimit;
|
skip = skip + requestLimit;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue