aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-23 06:06:54 +0800
committerkumavis <aaron@kumavis.me>2017-08-23 06:06:54 +0800
commit0a93b65a3dea32a85a73674fb40ee40257ed18d7 (patch)
tree9a58c7a43b2fbc770c6d45b354b00eb9f8cd8c9a /app
parentfb2c6cc8acacfbdf134877beb68090a6fc127b94 (diff)
downloadtangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.tar
tangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.tar.gz
tangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.tar.bz2
tangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.tar.lz
tangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.tar.xz
tangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.tar.zst
tangerine-wallet-browser-0a93b65a3dea32a85a73674fb40ee40257ed18d7.zip
remove unused code
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/nonce-tracker.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/scripts/lib/nonce-tracker.js b/app/scripts/lib/nonce-tracker.js
index 427c09508..03bc3c278 100644
--- a/app/scripts/lib/nonce-tracker.js
+++ b/app/scripts/lib/nonce-tracker.js
@@ -34,9 +34,6 @@ class NonceTracker {
nonceDetails.network = networkNonceResult.details
const nextNonce = Math.max(networkNonceResult.nonce, localNonceResult.nonce)
assert(Number.isInteger(nextNonce), `nonce-tracker - nextNonce is not an integer - got: (${typeof nextNonce}) "${nextNonce}"`)
- // collect the numbers used to calculate the nonce for debugging
- const currentPendingNonce = this._getLocalPendingNonce(address)
- nonceDetails.currentPendingNonce = currentPendingNonce
// return nonce and release cb
return { nextNonce, nonceDetails, releaseLock }
}
@@ -100,18 +97,6 @@ class NonceTracker {
return { name: 'local', nonce: nextNonce, details: nonceDetails }
}
- _getLocalPendingNonce (address) {
- const transactions = this.getPendingTransactions(address)
- const highestNonce = this._getHighestNonce(transactions)
- return highestNonce
- }
-
- _getLocalConfirmedNonce (address) {
- const transactions = this.getConfirmedTransactions(address)
- const highestNonce = this._getHighestNonce(transactions)
- return highestNonce
- }
-
_getLocalHighestNonce (address) {
const confirmedTransactions = this.getConfirmedTransactions(address)
const pendingTransactions = this.getPendingTransactions(address)