diff --git a/lib/bcoin/tx.js b/lib/bcoin/tx.js index 39ec1f30..7f02d06b 100644 --- a/lib/bcoin/tx.js +++ b/lib/bcoin/tx.js @@ -1220,7 +1220,7 @@ TX.prototype.inspect = function inspect() { minFee: utils.btc(this.getMinFee()), confirmations: this.getConfirmations(), priority: this.getPriority().toString(10), - date: new Date(this.ts * 1000).toISOString(), + date: new Date((this.ts || this.ps) * 1000).toISOString(), block: this.block ? utils.revHex(this.block) : null, ts: this.ts, ps: this.ps, @@ -1229,8 +1229,7 @@ TX.prototype.inspect = function inspect() { version: this.version, inputs: this.inputs, outputs: this.outputs, - locktime: this.locktime, - hint: this.hint + locktime: this.locktime }; };