From 1e6b283f9ac471e86f34c739a2ec06dcc2575d4c Mon Sep 17 00:00:00 2001
From: Wei Lu <luwei.here@gmail.com>
Date: Sat, 3 May 2014 10:19:38 +0800
Subject: [PATCH] Remove Number.isFinite check on tx input index

---
 src/transaction.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/transaction.js b/src/transaction.js
index f346125..5470dcd 100644
--- a/src/transaction.js
+++ b/src/transaction.js
@@ -361,7 +361,7 @@ Transaction.prototype.signWithKeys = function(keys, outputs, type) {
 Transaction.prototype.signScriptSig = function(index, script, key, type) {
   type = type || SIGHASH_ALL
 
-  assert(Number.isFinite(index) && (index >= 0), 'Invalid vin index')
+  assert((index >= 0), 'Invalid vin index')
   assert(script instanceof Script, 'Invalid Script object')
   assert(key instanceof ECKey, 'Invalid private key')
 //  assert.equal(type & 0x7F, type, 'Invalid type') // TODO