From c81f561f3eb33ad4d81058e580c7460da9c4cb64 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 10 Dec 2016 11:41:12 +1100 Subject: [PATCH] transaction: no i variable shadow --- src/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transaction.js b/src/transaction.js index f2377a6..09a416d 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -278,8 +278,8 @@ Transaction.prototype.hashForSignature = function (inIndex, prevOutScript, hashT } // ignore sequence numbers (except at inIndex) - txTmp.ins.forEach(function (input, i) { - if (i === inIndex) return + txTmp.ins.forEach(function (input, y) { + if (y === inIndex) return input.sequence = 0 })