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

This commit is contained in:
olalonde 2014-04-11 23:50:32 +08:00
parent 9aa210bccb
commit 91a857f424

View File

@ -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');