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

[fix] #239: money: remove already used inputs

- restore previous behaviour which haven’t been kept the same during the migration
- travel through pending, and among them remove already used from our list of
inputs
parent da527d74
No related branches found
No related tags found
1 merge request!146Merge dev into master branch to complete v0.8.0 development cycle
...@@ -168,8 +168,8 @@ async def get_sources(pubkey): ...@@ -168,8 +168,8 @@ async def get_sources(pubkey):
pending_sources.append(InputSource.from_inline(input)) pending_sources.append(InputSource.from_inline(input))
# remove input already used # remove input already used
for input in listinput: for input in pending_sources:
if input in pending_sources: if input in listinput:
listinput.remove(input) listinput.remove(input)
return listinput, amount return listinput, amount
......
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