diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-06-28 06:26:04 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-06-28 06:26:04 +0800 |
commit | 0ee4502d716ebe28fa426a05c454a75c7f82d965 (patch) | |
tree | 1f89c91dc7d65b427a053fabdd554643c6a38c42 | |
parent | 847a4282a2c0db6561972147bd366622424f5d28 (diff) | |
download | tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.tar tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.tar.gz tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.tar.bz2 tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.tar.lz tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.tar.xz tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.tar.zst tangerine-wallet-browser-0ee4502d716ebe28fa426a05c454a75c7f82d965.zip |
calculate nonce based on local pending txs w/o error state.
-rw-r--r-- | app/scripts/controllers/transactions.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 651565519..460280578 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -26,7 +26,7 @@ module.exports = class TransactionController extends EventEmitter { this.nonceTracker = new NonceTracker({ provider: this.provider, blockTracker: this.provider._blockTracker, - getPendingTransactions: (address) => this.getFilteredTxList({ from: address, status: 'submitted' }), + getPendingTransactions: (address) => this.getFilteredTxList({ from: address, status: 'submitted', err: undefined }), }) this.query = opts.ethQuery this.txProviderUtils = new TxProviderUtil(this.query) @@ -263,10 +263,19 @@ module.exports = class TransactionController extends EventEmitter { to: '0x0..', from: '0x0..', status: 'signed', + err: undefined, } and returns a list of tx with all options matching + ****************HINT**************** + | `err: undefined` is like looking | + | for a tx with no err | + | so you can also search txs that | + | dont have something as well by | + | setting the value as undefined | + ************************************ + this is for things like filtering a the tx list for only tx's from 1 account or for filltering for all txs from one account |