aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-01-18 10:03:52 +0800
committerGitHub <noreply@github.com>2018-01-18 10:03:52 +0800
commitb259c293745d94f257a0c309e331fea9f5ffaafe (patch)
tree3ac52fb6b791057b8200f7d92a6c82adb8896a0c
parent7c380547b77d90b718f14d6a31cda00fdbe2c819 (diff)
parent96fc916024cf16790a19472f31d3861168b8433b (diff)
downloadtangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.tar
tangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.tar.gz
tangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.tar.bz2
tangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.tar.lz
tangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.tar.xz
tangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.tar.zst
tangerine-wallet-browser-b259c293745d94f257a0c309e331fea9f5ffaafe.zip
Merge pull request #3021 from MetaMask/i#3020
transactions - transition approved transactions to failed transactions…
-rw-r--r--app/scripts/controllers/transactions.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 73aadb292..9c3618e60 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -57,6 +57,14 @@ module.exports = class TransactionController extends EventEmitter {
})
})
+ this.txStateManager.getFilteredTxList({
+ status: 'approved',
+ }).forEach((txMeta) => {
+ const txSignError = new Error('Transaction found as "approved" during boot - possibly stuck during signing')
+ this.txStateManager.setTxStatusFailed(txMeta.id, txSignError)
+ })
+
+
this.store = this.txStateManager.store
this.txStateManager.on('tx:status-update', this.emit.bind(this, 'tx:status-update'))
this.nonceTracker = new NonceTracker({