Browse Source

Merge pull request #1217 from fanatid/fix/writeable

fix typo: defineProperty.writeable
patch-2
Braydon Fuller 10 years ago
parent
commit
beeb294e45
  1. 2
      lib/block/block.js
  2. 1
      lib/block/blockheader.js
  3. 1
      lib/transaction/input/input.js
  4. 2
      lib/transaction/output.js
  5. 2
      lib/transaction/transaction.js

2
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
*/

1
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

1
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()) {

2
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;

2
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();

Loading…
Cancel
Save