Skip to content

feat: implement async-melt functionality#1002

Merged
a1denvalu3 merged 9 commits into
mainfrom
async-melt
May 17, 2026
Merged

feat: implement async-melt functionality#1002
a1denvalu3 merged 9 commits into
mainfrom
async-melt

Conversation

@a1denvalu3
Copy link
Copy Markdown
Collaborator

Summary

  • Added prefer_async field to PostMeltRequest.
  • Implemented async_melt wrapper in Ledger to handle asynchronous lightning payments.
  • Updated melt endpoint in router.py to route to async_melt when prefer_async is true.
  • Updated wallet's melt method and CLI pay command to support async payment initiation.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.33%. Comparing base (ce07276) to head (6acb3c1).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
cashu/mint/ledger.py 11.11% 8 Missing ⚠️
cashu/mint/router.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1002      +/-   ##
==========================================
- Coverage   75.41%   75.33%   -0.09%     
==========================================
  Files         110      110              
  Lines       11798    11812      +14     
==========================================
+ Hits         8897     8898       +1     
- Misses       2901     2914      +13     

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

@a1denvalu3
Copy link
Copy Markdown
Collaborator Author

Needs to be rebased

Copy link
Copy Markdown
Contributor

@KvngMikey KvngMikey left a comment

Choose a reason for hiding this comment

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

LGTM

@a1denvalu3 a1denvalu3 merged commit 0db8a63 into main May 17, 2026
30 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in nutshell May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants