From f5a63563e3430179434d236d3f4e9a5a00f14edd Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 18 Jan 2016 12:48:43 -0800 Subject: [PATCH] rename unspent. --- lib/bcoin/tx.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bcoin/tx.js b/lib/bcoin/tx.js index 4ca925f3..c3a099ce 100644 --- a/lib/bcoin/tx.js +++ b/lib/bcoin/tx.js @@ -61,7 +61,7 @@ function TX(data, block) { } } - this._unspent = data._unspent || null; + this.unspent = data.unspent || null; this.hardFee = data.hardFee || null; this.changeAddress = data.changeAddress || null; this.changeIndex = data.changeIndex != null ? data.changeIndex : -1; @@ -949,7 +949,7 @@ TX.prototype.fillUnspent = function fillUnspent(unspent, address, fee) { var result; if (unspent) - this._unspent = unspent; + this.unspent = unspent; if (address) this.changeAddress = address; @@ -959,7 +959,7 @@ TX.prototype.fillUnspent = function fillUnspent(unspent, address, fee) { assert(this.changeAddress); - result = this.getUnspent(this._unspent, this.changeAddress, this.hardFee); + result = this.getUnspent(this.unspent, this.changeAddress, this.hardFee); if (!result.inputs) return result; @@ -1372,7 +1372,7 @@ TX.prototype.inspect = function inspect() { copy.block = this.block; delete copy._raw; delete copy._chain; - delete copy._unspent; + delete copy.unspent; copy.hash = this.hash('hex'); copy.rhash = this.rhash; copy.rblock = this.rblock;