Skip to content
Snippets Groups Projects
Commit da527d74 authored by Moul's avatar Moul
Browse files

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

parent 78574a8e
No related branches found
No related tags found
1 merge request!146Merge dev into master branch to complete v0.8.0 development cycle
...@@ -149,9 +149,9 @@ async def get_sources(pubkey): ...@@ -149,9 +149,9 @@ async def get_sources(pubkey):
# add pending output # add pending output
pending_sources = list() pending_sources = list()
for i, pending in enumerate(pendings): for pending in pendings:
identifier = pending["hash"] identifier = pending["hash"]
for output in pending["outputs"]: for i, output in enumerate(pending["outputs"]):
outputsplited = output.split(":") outputsplited = output.split(":")
if outputsplited[2] == "SIG(" + pubkey + ")": if outputsplited[2] == "SIG(" + pubkey + ")":
inputgenerated = InputSource( inputgenerated = InputSource(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment