aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-23 04:58:26 +0800
committerkumavis <aaron@kumavis.me>2017-08-23 04:58:26 +0800
commitb191649ef5ee952c636b224658181fdf2fd73b97 (patch)
treecdcb314ae468e343291a83b399129fed3abd457c
parent98bc9b6656a7fd712085df76252030ddadc653dd (diff)
downloadtangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.tar
tangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.tar.gz
tangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.tar.bz2
tangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.tar.lz
tangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.tar.xz
tangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.tar.zst
tangerine-wallet-browser-b191649ef5ee952c636b224658181fdf2fd73b97.zip
nonce-tracker - getHighestNonce doesnt need uniqued input
-rw-r--r--app/scripts/lib/nonce-tracker.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/lib/nonce-tracker.js b/app/scripts/lib/nonce-tracker.js
index 0a87f040d..d44f9c858 100644
--- a/app/scripts/lib/nonce-tracker.js
+++ b/app/scripts/lib/nonce-tracker.js
@@ -94,9 +94,9 @@ class NonceTracker {
}
async _getlocalNextNonce (address) {
- const confirmedTransactions = this._reduceTxListToUniqueNonces(this.getConfirmedTransactions(address))
- const pendingTransactions = this._reduceTxListToUniqueNonces(this.getPendingTransactions(address))
- const transactions = this._reduceTxListToUniqueNonces(confirmedTransactions.concat(pendingTransactions))
+ const confirmedTransactions = this.getConfirmedTransactions(address)
+ const pendingTransactions = this.getPendingTransactions(address)
+ const transactions = confirmedTransactions.concat(pendingTransactions)
const highestNonce = this._getHighestNonce(transactions)
let localNonce = highestNonce
// throw out localNonce if not a number
@@ -115,7 +115,7 @@ class NonceTracker {
}
_getLocalPendingNonce (address) {
- const pendingTransactions = this._reduceTxListToUniqueNonces(this.getPendingTransactions(address))
+ const pendingTransactions = this.getPendingTransactions(address)
const localNonce = this._getHighestNonce(pendingTransactions)
return localNonce
}