You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First call: User makes a melt request that takes a long time
Before the first call returns, user GETs the melt quote
Melt quote is PAID although the first call hasn't returned yet
Mint invalidates all proofs of this melt operation
Now the first call returns, and we try to invalidate the same melt proofs again
Can be reproduced by setting fakewallet_delay_outgoing_payment = 15 to a long time, and fakewallet_payment_state="PAID" (seems to work also for PENDING, probably doesn't matter?).
I think this race condition is very unlikely in a real scenario, because the first call would likely return before any other GET request can race it. Should still be fixed of course.
The text was updated successfully, but these errors were encountered:
Race condition when melting tokens.
PAID
although the first call hasn't returned yetproofs
of this melt operationCan be reproduced by setting
fakewallet_delay_outgoing_payment = 15
to a long time, andfakewallet_payment_state="PAID"
(seems to work also forPENDING
, probably doesn't matter?).I think this race condition is very unlikely in a real scenario, because the first call would likely return before any other GET request can race it. Should still be fixed of course.
The text was updated successfully, but these errors were encountered: