Mint should check state of unpaid mint quotes per request #587
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk#587
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the mint relies on a stable incoming invoice stream to update the in-db mint quote states. This also requires a startup routine that checks all pending and unpaid mint quotes because they could've been paid during downtime. The list of unpaid mint quotes could become very large delaying or even preventing future startups.
Instead of this, the mint should rely on the invoice stream only for updating the mint quote state in the db and for the websocket functionality. We would need to add an
ln.check_incoming_invoice_statuswhen the user makes a request on an unpaid mint quote.check_mint_quoteshould thereforeln.check_incoming_invoice_statusisPAID, update the mint quote in the dbprocess_mint_requestshould do the same, but instead of returning at 4, it should error if the mint quote stat is notPAID.closed by #591