-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mints: New melt flow #622
Mints: New melt flow #622
Conversation
…payments marked pending.
… changes in lnbits
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #622 +/- ##
==========================================
- Coverage 69.02% 63.83% -5.19%
==========================================
Files 92 98 +6
Lines 8674 10555 +1881
==========================================
+ Hits 5987 6738 +751
- Misses 2687 3817 +1130
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
case _: | ||
logger.error( | ||
f"Payment state is {status.result} and payment was {payment.result}. Proofs for melt quote {melt_quote.quote} are stuck as PENDING." | ||
) | ||
return PostMeltQuoteResponse.from_melt_quote(melt_quote) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is accounting for case SETTLED
and case PENDING
, even though you probably only thought of PENDING
. (what if a backend returns UNKNOWN
but then returns SETTLED
at the second time of asking?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second check is only for making sure the payment in the first step actually FAILED | UNKNOWN
. If the first FAILED | UNKNOWN
but the second one is not FAILED | UNKNOWN
, the transaction should remain stuck and thus the melt quote should remain pending
.
No description provided.