From 9aa210bccb65933e35c3911a67002a71d10414f9 Mon Sep 17 00:00:00 2001 From: olalonde Date: Fri, 11 Apr 2014 18:08:07 +0800 Subject: [PATCH] TxIn: add sequence to standardized object --- Transaction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Transaction.js b/Transaction.js index fe06563..f3a8dd0 100644 --- a/Transaction.js +++ b/Transaction.js @@ -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');