Merge pull request #5479 from matiu/bug/delete-tx-history

fix delete tx history
This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-18 14:38:01 -03:00 committed by GitHub
commit 5a945a8c8b
16 changed files with 101 additions and 7 deletions

View file

@ -551,6 +551,21 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
};
};
root.clearTxHistory = function(wallet, cb) {
root.invalidateCache(wallet);
storageService.removeTxHistory(wallet.id, function(err) {
if (err) {
$log.error(err);
return cb(err);
}
return cb();
});
};
root.getTxHistory = function(wallet, opts, cb) {
opts = opts || {};