diff options
author | frankiebee <frankie.diamond@gmail.com> | 2018-03-27 06:58:36 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2018-03-27 06:58:36 +0800 |
commit | 43dde3cbde4118ef5d5b40faca6af8b308a1a902 (patch) | |
tree | c132212db05e9efc78527abcc1d40957a7db1a4c /app/scripts/lib | |
parent | e001c0900b5256c0c8769f0c3eb5d2007f5b18d3 (diff) | |
download | tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.tar tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.tar.gz tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.tar.bz2 tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.tar.lz tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.tar.xz tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.tar.zst tangerine-wallet-browser-43dde3cbde4118ef5d5b40faca6af8b308a1a902.zip |
transactions - only save up to 40 txs totall across all networks
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/tx-state-manager.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js index ad07c813f..ab344ae9b 100644 --- a/app/scripts/lib/tx-state-manager.js +++ b/app/scripts/lib/tx-state-manager.js @@ -38,11 +38,6 @@ module.exports = class TransactionStateManager extends EventEmitter { }, opts) } - // Returns the number of txs for the current network. - getTxCount () { - return this.getTxList().length - } - getTxList () { const network = this.getNetwork() const fullTxList = this.getFullTxList() @@ -88,7 +83,7 @@ module.exports = class TransactionStateManager extends EventEmitter { txMeta.history.push(snapshot) const transactions = this.getFullTxList() - const txCount = this.getTxCount() + const txCount = transactions.length const txHistoryLimit = this.txHistoryLimit // checks if the length of the tx history is |