Commit 735674ed authored by Moul's avatar Moul

[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
...@@ -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
......
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