fix delete tx history

This commit is contained in:
Matias Alejo Garcia 2017-01-18 12:09:17 -03:00
commit bbb3acdca1
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
2 changed files with 24 additions and 2 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();
}
return cb();
});
};
root.getTxHistory = function(wallet, opts, cb) {
opts = opts || {};