transactions:state - add a submittedTime stamp so the ui has a better grasp of the time of submission

feature/default_network_editable
frankiebee 7 years ago
parent 179066fe6b
commit 9fd349d740
  1. 4
      app/scripts/lib/tx-state-manager.js

@ -214,7 +214,11 @@ module.exports = class TransactionStateManager extends EventEmitter {
} }
// should update the status of the tx to 'submitted'. // should update the status of the tx to 'submitted'.
// and add a time stamp for when it was called
setTxStatusSubmitted (txId) { setTxStatusSubmitted (txId) {
const txMeta = this.getTx(txId)
txMeta.submittedTime = (new Date()).getTime()
this.updateTx(txMeta, 'txStateManager - add submitted time stamp')
this._setTxStatus(txId, 'submitted') this._setTxStatus(txId, 'submitted')
} }

Loading…
Cancel
Save