diff options
author | frankiebee <frankie.diamond@gmail.com> | 2018-05-23 07:45:20 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2018-05-23 07:45:20 +0800 |
commit | 61caee9d944615a48c43e4eb66b204c1e8b9ae6d (patch) | |
tree | 1ac62947cd2a740bbf63b8a045ff82e4deeeb250 /app/scripts/controllers/transactions/index.js | |
parent | c4b09da34e9950ea485dfecb810726e49b683dcd (diff) | |
parent | 145016be4c681b725d3450f59cb2892f0ec6d993 (diff) | |
download | tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.gz tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.bz2 tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.lz tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.xz tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.zst tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.zip |
Merge branch 'network-remove-provider-engine' of https://github.com/MetaMask/metamask-extension into transactions-use-new-block-tracker
Diffstat (limited to 'app/scripts/controllers/transactions/index.js')
-rw-r--r-- | app/scripts/controllers/transactions/index.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index 313b20675..7cb8af3a8 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -114,21 +114,6 @@ class TransactionController extends EventEmitter { } /** - Check if a txMeta in the list with the same nonce has been confirmed in a block - if the txParams dont have a nonce will return false - @returns {boolean} whether the nonce has been used in a transaction confirmed in a block - @param {object} txMeta - the txMeta object - */ - async isNonceTaken (txMeta) { - const { from, nonce } = txMeta.txParams - if ('nonce' in txMeta.txParams) { - const sameNonceTxList = this.txStateManager.getFilteredTxList({from, nonce, status: 'confirmed'}) - return (sameNonceTxList.length >= 1) - } - return false - } - - /** add a new unapproved transaction to the pipeline @returns {Promise<string>} the hash of the transaction after being submitted to the network |