From 00168a7949023ca8218d8a936b9c0b4e18cd1b99 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Mon, 28 Jan 2019 16:08:38 +0100
Subject: [PATCH] [mod] #184: use `for i in enumerate()`.

---
 silkaj/money.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/silkaj/money.py b/silkaj/money.py
index c032b7dc..3ac6c488 100644
--- a/silkaj/money.py
+++ b/silkaj/money.py
@@ -153,13 +153,12 @@ async def get_sources(pubkey):
     last_block_number = head_block["number"]
 
     # add pending output
-    for pending in pendings:
+    for i, pending in enumerate(pendings):
         blockstamp = pending["blockstamp"]
         block_number = int(blockstamp.split("-")[0])
         # if it's not an old transaction (bug in mirror node)
         if block_number >= last_block_number - 3:
             identifier = pending["hash"]
-            i = 0
             for output in pending["outputs"]:
                 outputsplited = output.split(":")
                 if outputsplited[2] == "SIG(" + pubkey + ")":
@@ -172,7 +171,6 @@ async def get_sources(pubkey):
                     )
                     if inputgenerated not in listinput:
                         listinput.append(inputgenerated)
-                i += 1
 
     # remove input already used
     for pending in pendings:
-- 
GitLab