Merge pull request #3303 from javierbitpay/feat/tx-history-02

Feat/tx history 02
This commit is contained in:
Matias Alejo Garcia 2015-10-23 14:29:22 -03:00
commit c9f1775cac
4 changed files with 177 additions and 104 deletions

View file

@ -216,5 +216,17 @@ angular.module('copayApp.services')
storage.remove('addressbook-' + network, cb);
};
root.setTxHistory = function(txs, walletId, cb) {
storage.set('txsHistory-' + walletId, txs, cb);
}
root.getTxHistory = function(walletId, cb) {
storage.get('txsHistory-' + walletId, cb);
}
root.removeTxHistory = function(walletId, cb) {
storage.remove('txsHistory-' + walletId, cb);
}
return root;
});