Read the latest mint quote status in a transaction to avoid race conditions #1166
No reviewers
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!1166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/duplicate-entry-on-mint"
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?
Description
Fixes #1162
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing@ -45,6 +45,20 @@ impl Mint {I think we should do this for all payment methods? The same race condition could occur.
@ -45,6 +45,20 @@ impl Mint {Yes, done in
a93b8c9d@ -48,0 +57,4 @@&& (current_state == MintQuoteState::Issued || current_state == MintQuoteState::Paid){return Ok(());}This needs to be only bolt11 though, since bolt12 can be paid multiple time.
@ -48,0 +57,4 @@&& (current_state == MintQuoteState::Issued || current_state == MintQuoteState::Paid){return Ok(());}You are right, I forgot to move that statement here while removing it from the parent check. Fixed in
7b640116Backport branch created but failed to create PR.
Request to create PR rejected with status 403.
(see action log for full response)
Successfully created backport PR for
v0.13.x:Successfully created backport PR for
v0.13.x: