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: Global db lock #391

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Mint: Global db lock #391

wants to merge 5 commits into from

Conversation

callebtc
Copy link
Collaborator

Use database uniqueness constraint as a global db lock for swap, mint, melt.

@callebtc callebtc added the mint About the Nutshell mint label Jan 19, 2024
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (1de7abf) 62.19% compared to head (79f8e43) 63.27%.

Files Patch % Lines
cashu/mint/ledger.py 79.31% 6 Missing ⚠️
cashu/core/db.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #391      +/-   ##
==========================================
+ Coverage   62.19%   63.27%   +1.07%     
==========================================
  Files          73       73              
  Lines        6340     6363      +23     
==========================================
+ Hits         3943     4026      +83     
+ Misses       2397     2337      -60     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mint About the Nutshell mint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant