diff options
nonce-tracker - getHighestNonce doesnt need uniqued input
-rw-r--r-- | app/scripts/lib/nonce-tracker.js | 8 |
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 } |