TxIn: add sequence to standardized object

This commit is contained in:
olalonde 2014-04-11 18:08:07 +08:00
parent 8c5dd597f0
commit 9aa210bccb
1 changed files with 2 additions and 1 deletions

View File

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