From bb34a80f9d009b141a41b83ac84e51ffc1e00dc1 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 31 Mar 2016 07:03:34 -0700 Subject: [PATCH] fix tx.toExtended. --- lib/bcoin/tx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/tx.js b/lib/bcoin/tx.js index 1b1ae060..b6de7abc 100644 --- a/lib/bcoin/tx.js +++ b/lib/bcoin/tx.js @@ -1269,7 +1269,7 @@ TX.prototype.toExtended = function toExtended(saveCoins) { bcoin.protocol.framer.renderTX(this, true, p); p.writeU32(height); p.writeHash(this.block || constants.zeroHash); - p.writeU32(this.index); + p.writeU32(index); p.writeU32(this.ts); p.writeU32(this.ps); // p.writeU32(changeIndex);