diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2018-07-13 02:48:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 02:48:05 +0800 |
commit | 5a45df72c6aaed3f8f1903cc4e47231488e568b3 (patch) | |
tree | 23eb1e0b4429170672b9e40c874b363300ddfdb2 | |
parent | 47d596c090c434e564af157967d303753f8e65e3 (diff) | |
parent | 5188b727d43e91087449818dee69942c382b6d89 (diff) | |
download | tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.gz tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.bz2 tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.lz tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.xz tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.zst tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.zip |
Merge pull request #4669 from MetaMask/removeNonceTrackerFunction
Remove unsued nonce tracker function
-rw-r--r-- | app/scripts/controllers/transactions/nonce-tracker.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/scripts/controllers/transactions/nonce-tracker.js b/app/scripts/controllers/transactions/nonce-tracker.js index 35ca08d6c..06f336eaa 100644 --- a/app/scripts/controllers/transactions/nonce-tracker.js +++ b/app/scripts/controllers/transactions/nonce-tracker.js @@ -129,19 +129,6 @@ class NonceTracker { return Number.isInteger(highest) ? highest + 1 : 0 } - _reduceTxListToUniqueNonces (txList) { - const reducedTxList = txList.reduce((reducedList, txMeta, index) => { - if (!index) return [txMeta] - const nonceMatches = txList.filter((txData) => { - return txMeta.txParams.nonce === txData.txParams.nonce - }) - if (nonceMatches.length > 1) return reducedList - reducedList.push(txMeta) - return reducedList - }, []) - return reducedTxList - } - _getHighestNonce (txList) { const nonces = txList.map((txMeta) => { const nonce = txMeta.txParams.nonce |