diff --git a/lib/block/block.js b/lib/block/block.js index eb3246e..341d627 100644 --- a/lib/block/block.js +++ b/lib/block/block.js @@ -277,7 +277,7 @@ Block.prototype._getHash = function() { var idProperty = { configurable: false, - writeable: false, + enumerable: true, /** * @returns {string} - The big endian hash buffer of the header */ diff --git a/lib/block/blockheader.js b/lib/block/blockheader.js index c3280e3..722d7a8 100644 --- a/lib/block/blockheader.js +++ b/lib/block/blockheader.js @@ -233,7 +233,6 @@ BlockHeader.prototype._getHash = function hash() { var idProperty = { configurable: false, - writeable: false, enumerable: true, /** * @returns {string} - The big endian hash buffer of the header diff --git a/lib/transaction/input/input.js b/lib/transaction/input/input.js index 6cbffc6..ad77212 100644 --- a/lib/transaction/input/input.js +++ b/lib/transaction/input/input.js @@ -27,7 +27,6 @@ Input.DEFAULT_SEQNUMBER = DEFAULT_SEQNUMBER; Object.defineProperty(Input.prototype, 'script', { configurable: false, - writeable: false, enumerable: true, get: function() { if (this.isNull()) { diff --git a/lib/transaction/output.js b/lib/transaction/output.js index e5fde4c..963d1cc 100644 --- a/lib/transaction/output.js +++ b/lib/transaction/output.js @@ -26,7 +26,6 @@ function Output(params) { Object.defineProperty(Output.prototype, 'script', { configurable: false, - writeable: false, enumerable: true, get: function() { if (!this._script) { @@ -46,7 +45,6 @@ Object.defineProperty(Output.prototype, 'script', { Object.defineProperty(Output.prototype, 'satoshis', { configurable: false, - writeable: true, enumerable: true, get: function() { return this._satoshis; diff --git a/lib/transaction/transaction.js b/lib/transaction/transaction.js index 3a231a1..bdfd458 100644 --- a/lib/transaction/transaction.js +++ b/lib/transaction/transaction.js @@ -99,7 +99,6 @@ Transaction.shallowCopy = function(transaction) { var hashProperty = { configurable: false, - writeable: false, enumerable: true, get: function() { return new BufferReader(this._getHash()).readReverse().toString('hex'); @@ -110,7 +109,6 @@ Object.defineProperty(Transaction.prototype, 'id', hashProperty); var ioProperty = { configurable: false, - writeable: false, enumerable: true, get: function() { return this._getInputAmount();