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);