New websocket subscriptions should check mint quote states #1104
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk#1104
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?
Mint quotes are no longer checked on startup since https://github.com/cashubtc/cdk/pull/873. Currently the http endpoints check mint quote state, but if a wallet is only using websockets the
on_new_subscriptionmethod will only check the quote state in the database rather than asking the LN backend. New subscriptions should check mint quote states to make sure the wallet gets the latest actual state.For reference, I tried to implement this here; however, we can't pass the
Mintinstance to thePubSubManagerbecause that creates a circular dependency, so I passed thepayment_processorsto thePubSubManager. This does not seem like the best approach, so I'm not opening a PR.Fixed on #1246