Skip to content

Async wallet bump #3752

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

joostjager
Copy link
Contributor

No description provided.

@ldk-reviews-bot
Copy link

👋 Hi! I see this is a draft PR.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

To prepare for asynchronous processing of the sweep, we need to decouple
the spending from the chain notifications. These notifications run in a
sync context and wouldn't allow calls into an async trait.

Instead we now periodically call into the sweeper, to open up the
possibility to do so from an async context if desired.
synchronous wrappers for usage in a sync context.
@joostjager joostjager force-pushed the async-wallet-bump branch from 4bfc36a to 759760f Compare May 1, 2025 10:57
@joostjager joostjager force-pushed the async-wallet-bump branch 2 times, most recently from d9b1c75 to 873516b Compare May 1, 2025 11:08
Copy link

codecov bot commented May 1, 2025

Codecov Report

Attention: Patch coverage is 87.69575% with 55 lines in your changes missing coverage. Please review.

Project coverage is 89.67%. Comparing base (f507778) to head (880d538).
Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/util/sweep.rs 77.71% 27 Missing and 10 partials ⚠️
lightning/src/events/bump_transaction.rs 87.95% 5 Missing and 5 partials ⚠️
lightning/src/util/async_poll.rs 57.14% 3 Missing ⚠️
lightning-background-processor/src/lib.rs 96.22% 2 Missing ⚠️
lightning/src/ln/functional_tests.rs 90.90% 0 Missing and 1 partial ⚠️
lightning/src/ln/monitor_tests.rs 99.00% 1 Missing ⚠️
lightning/src/util/test_utils.rs 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3752      +/-   ##
==========================================
+ Coverage   89.13%   89.67%   +0.53%     
==========================================
  Files         157      157              
  Lines      123851   128056    +4205     
  Branches   123851   128056    +4205     
==========================================
+ Hits       110395   114828    +4433     
+ Misses      10779    10636     -143     
+ Partials     2677     2592      -85     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joostjager joostjager force-pushed the async-wallet-bump branch from 873516b to c1532e7 Compare May 1, 2025 13:19
@joostjager joostjager force-pushed the async-wallet-bump branch 2 times, most recently from e442dda to c1e85f9 Compare May 2, 2025 13:45
@joostjager joostjager force-pushed the async-wallet-bump branch from c1e85f9 to 100d5e2 Compare May 2, 2025 13:58
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