Skip to content
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

Mint: Pending payment check on startup should be non-blocking and periodic task #616

Open
callebtc opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request good first issue A great way to get into Cashu development mint About the Nutshell mint

Comments

@callebtc
Copy link
Collaborator

We call await self._check_pending_proofs_and_melt_quotes() once during startup in ledger.py. This call is blocking but it doesn't need to be, it could run in the background.

We should also call this function periodically to make sure the mint cleans up any stuck payments that could have been caused due to communication errors with the Lightning backend. This can be solved using an endless task loop that repeats, say, once an hour.

@callebtc callebtc added enhancement New feature or request mint About the Nutshell mint good first issue A great way to get into Cashu development labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue A great way to get into Cashu development mint About the Nutshell mint
Projects
None yet
Development

No branches or pull requests

1 participant