Commit da527d74 authored by Moul's avatar Moul

[fix] #239: enumerate() wrongly moved to the non appropriate for loop

parent 78574a8e
......@@ -149,9 +149,9 @@ async def get_sources(pubkey):
# add pending output
pending_sources = list()
for i, pending in enumerate(pendings):
for pending in pendings:
identifier = pending["hash"]
for output in pending["outputs"]:
for i, output in enumerate(pending["outputs"]):
outputsplited = output.split(":")
if outputsplited[2] == "SIG(" + pubkey + ")":
inputgenerated = InputSource(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment