"fix" hours for message

This commit is contained in:
frankiebee 2017-10-05 11:42:01 -07:00
parent e128e4859f
commit 3cb9da2ae5
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
async _resubmitTx (txMeta) {
if (Date.now() > txMeta.time + this.retryTimePeriod) {
const err = new Error(`Gave up submitting after ${this.retryTimePeriod / 3.6e+6} hours.`)
const hours = (this.retryTimePeriod / 3.6e+6).toFixed(1)
const err = new Error(`Gave up submitting after ${hours} hours.`)
return this.emit('tx:failed', txMeta.id, err)
}