aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-01-18 08:49:38 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-01-18 08:49:38 +0800
commit234c2417ca2480fc3025030bc19ef007ea8e8d30 (patch)
tree6d045969b4cae835618bb1e5b4098d2045894962 /app/scripts
parent7c380547b77d90b718f14d6a31cda00fdbe2c819 (diff)
downloadtangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.tar
tangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.tar.gz
tangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.tar.bz2
tangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.tar.lz
tangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.tar.xz
tangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.tar.zst
tangerine-wallet-browser-234c2417ca2480fc3025030bc19ef007ea8e8d30.zip
transactions - transtion approved transactions to failed transactions on boot
Diffstat (limited to 'app/scripts')
-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..c1909d95c 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 was interrupted during signing process')
+ 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({