Browse Source

TxIn: don't set sequence to null if 0xffffffff

patch-2
olalonde 11 years ago
parent
commit
91a857f424
  1. 2
      Transaction.js

2
Transaction.js

@ -433,7 +433,7 @@ Transaction.prototype.getStandardizedObject = function getStandardizedObject() {
hash: buffertools.reverse(new Buffer(txin.getOutpointHash())).toString('hex'), hash: buffertools.reverse(new Buffer(txin.getOutpointHash())).toString('hex'),
n: txin.getOutpointIndex() n: txin.getOutpointIndex()
}, },
sequence: (txin.q === 0xffffffff) ? null : txin.q sequence: txin.q
}; };
if (txin.isCoinBase()) { if (txin.isCoinBase()) {
txinObj.coinbase = txin.s.toString('hex'); txinObj.coinbase = txin.s.toString('hex');

Loading…
Cancel
Save