Mise à jour de GitLab prévue ce 29 mai 2020 à partir de 9h00 CEST | GitLab upgrade planned the 29th of May 2020 from 9:00 AM CEST

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
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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment