TxIn: add sequence to standardized object

This commit is contained in:
olalonde 2014-04-11 18:08:07 +08:00
parent 8c5dd597f0
commit 9aa210bccb

View File

@ -432,7 +432,8 @@ Transaction.prototype.getStandardizedObject = function getStandardizedObject() {
prev_out: { prev_out: {
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
}; };
if (txin.isCoinBase()) { if (txin.isCoinBase()) {
txinObj.coinbase = txin.s.toString('hex'); txinObj.coinbase = txin.s.toString('hex');