aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/controllers/shapeshift.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/scripts/lib/controllers/shapeshift.js b/app/scripts/lib/controllers/shapeshift.js
index fbdc2c180..3d955c01f 100644
--- a/app/scripts/lib/controllers/shapeshift.js
+++ b/app/scripts/lib/controllers/shapeshift.js
@@ -4,9 +4,6 @@ const extend = require('xtend')
// every three seconds when an incomplete tx is waiting
const POLLING_INTERVAL = 3000
-// drop txs that haven't been paid to in 11 mins
-const TIMEOUT_LIMIT = 660000
-
class ShapeshiftController {
constructor (opts = {}) {
@@ -27,24 +24,11 @@ class ShapeshiftController {
}
getPendingTxs () {
- this.removeOldTxs()
const txs = this.getShapeShiftTxList()
const pending = txs.filter(tx => tx.response && tx.response.status !== 'complete')
return pending
}
- removeOldTxs() {
- const { shapeShiftTxList } = this.store.getState()
- const now = new Date().getTime()
- const old = shapeShiftTxList.find((tx) => {
- return tx.time + TIMEOUT_LIMIT < now &&
- tx.response && tx.response.status === 'no_deposits'
- })
- if (old) {
- old.forEach(tx => this.removeShapeShiftTx(tx))
- }
- }
-
pollForUpdates () {
const pendingTxs = this.getPendingTxs()