From e6190f9e9b2eb2a097004deab4707405548a417e Mon Sep 17 00:00:00 2001 From: Aaron Caswell Date: Tue, 19 Aug 2014 23:30:08 -0700 Subject: [PATCH] Update Transaction.js Global leak fix --- lib/Transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transaction.js b/lib/Transaction.js index f06e7b6a2..bb53fa45a 100644 --- a/lib/Transaction.js +++ b/lib/Transaction.js @@ -543,7 +543,7 @@ Transaction.prototype.parse = function(parser) { var txinCount = parser.varInt(); this.ins = []; - for (j = 0; j < txinCount; j++) { + for (i = 0; i < txinCount; i++) { var txin = new TransactionIn(); txin.o = parser.buffer(36); // outpoint sLen = parser.varInt(); // script_len @@ -555,7 +555,7 @@ Transaction.prototype.parse = function(parser) { var txoutCount = parser.varInt(); this.outs = []; - for (j = 0; j < txoutCount; j++) { + for (i = 0; i < txoutCount; i++) { var txout = new TransactionOut(); txout.v = parser.buffer(8); // value sLen = parser.varInt(); // script_len