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

Refactor core connection check & swap liquidity #423

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

KnowWhoami
Copy link
Collaborator

This PR aims to:

  • avoid spawning a seperate thread for checking bitcoin core connection and bring it inside the main loop as mentioned in Fix bugs related to fidelity registration and redemption #390 (comment)
  • create a dedicated api check_for_swap_liquidity
  • improvise the interval logic for periodic checks in the main loop of maker server.
  • includes some other auxiliary enhancements.

Note to Reviewers:

This PR is a smaller version of #390 which includes the necessary design refactorings.

It aims to:
 - avoid spawning a seperate thread for checking bitcoin core connection and bring it inside the main loop.
 - create a dedicated api `check_for_swap_liquidity`
 - improvise the interval logic for periodic checks in the main loop of maker server.
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 81.57895% with 7 lines in your changes missing coverage. Please review.

Project coverage is 70.18%. Comparing base (221d33f) to head (59bc1cf).
Report is 18 commits behind head on master.

Files with missing lines Patch % Lines
src/maker/server.rs 83.33% 6 Missing ⚠️
src/maker/api.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #423      +/-   ##
==========================================
+ Coverage   70.06%   70.18%   +0.11%     
==========================================
  Files          34       34              
  Lines        4263     4226      -37     
==========================================
- Hits         2987     2966      -21     
+ Misses       1276     1260      -16     

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

Copy link

@mojoX911 mojoX911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. Just one change request.

Copy link

@mojoX911 mojoX911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack..

@mojoX911 mojoX911 merged commit ee7310e into citadel-tech:master Feb 20, 2025
8 checks passed
@KnowWhoami KnowWhoami deleted the core_conn_swap_liqudity branch February 21, 2025 05:35
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.

2 participants