loading history from bwc and local
This commit is contained in:
parent
23ce1a16cf
commit
86f356bca3
3 changed files with 331 additions and 133 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue