|
|
|
@ -399,6 +399,7 @@ class TransactionStateManager extends EventEmitter { |
|
|
|
|
const txMeta = this.getTx(txId) |
|
|
|
|
txMeta.status = status |
|
|
|
|
setTimeout(() => { |
|
|
|
|
try { |
|
|
|
|
this.updateTx(txMeta, `txStateManager: setting status to ${status}`) |
|
|
|
|
this.emit(`${txMeta.id}:${status}`, txId) |
|
|
|
|
this.emit(`tx:status-update`, txId, status) |
|
|
|
@ -406,6 +407,9 @@ class TransactionStateManager extends EventEmitter { |
|
|
|
|
this.emit(`${txMeta.id}:finished`, txMeta) |
|
|
|
|
} |
|
|
|
|
this.emit('update:badge') |
|
|
|
|
} catch (error) { |
|
|
|
|
log.error(error) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|