TxIn: add sequence to standardized object
This commit is contained in:
parent
8c5dd597f0
commit
9aa210bccb
@ -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');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user