loading history from bwc and local

This commit is contained in:
Javier 2015-10-08 14:29:35 -03:00
commit 86f356bca3
3 changed files with 331 additions and 133 deletions

View file

@ -216,5 +216,20 @@ 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.setTxHistoryFlag = function(value, walletId, cb) {
storage.set('txsHistoryFlag-' + walletId, value, cb);
}
root.getTxHistoryFlag = function(walletId, cb) {
storage.get('txsHistoryFlag-' + walletId, cb);
}
return root;
});