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

Implement balance logging in watchdog worker #705

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

Implement balance logging in watchdog worker #705

wants to merge 17 commits into from

Conversation

callebtc
Copy link
Collaborator

@callebtc callebtc commented Feb 17, 2025

Introduce functionality to store and log balances in the watchdog worker, enhancing monitoring of backend and keyset balances. Update balance retrieval methods to support this feature.

Todo:

  • design killswitch mechanism
  • tests
  • ponder: backend.status() should return int and not float?

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 82.72251% with 33 lines in your changes missing coverage. Please review.

Project coverage is 66.02%. Comparing base (23a706d) to head (2b2dc45).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cashu/core/base.py 71.92% 16 Missing ⚠️
cashu/lightning/fake.py 54.54% 5 Missing ⚠️
cashu/mint/watchdog.py 94.82% 3 Missing ⚠️
cashu/lightning/clnrest.py 0.00% 2 Missing ⚠️
cashu/lightning/corelightningrest.py 0.00% 2 Missing ⚠️
cashu/wallet/cli/cli.py 33.33% 2 Missing ⚠️
cashu/lightning/lnd_grpc/lnd_grpc.py 0.00% 1 Missing ⚠️
cashu/lightning/lndrest.py 50.00% 1 Missing ⚠️
cashu/mint/crud.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #705      +/-   ##
==========================================
+ Coverage   65.67%   66.02%   +0.34%     
==========================================
  Files          88       84       -4     
  Lines        9513     9391     -122     
==========================================
- Hits         6248     6200      -48     
+ Misses       3265     3191      -74     

☔ 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant