Skip to content

Make OutputSweeper::track_spendable_outputs fallible #3015

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

Merged

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Apr 24, 2024

.. as otherwise we might only log an error and continue if we fail to persist the sweeper state.

This came up during the LDK Node upgrade to 0.0.123-beta. It's nice for the user to be sure that during migration the sweeper has been successfully persisted before it can safely remove the previously-persisted output information.

@tnull tnull added this to the 0.0.123 milestone Apr 24, 2024
@tnull tnull requested review from TheBlueMatt and jkczyz April 24, 2024 07:36
@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 89.12%. Comparing base (0e22b12) to head (afb452a).

Files Patch % Lines
lightning/src/util/sweep.rs 50.00% 1 Missing and 2 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3015      +/-   ##
==========================================
- Coverage   89.15%   89.12%   -0.03%     
==========================================
  Files         118      118              
  Lines       97678    97678              
  Branches    97678    97678              
==========================================
- Hits        87080    87060      -20     
- Misses       8357     8374      +17     
- Partials     2241     2244       +3     

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

.. as otherwise we might only log an error and continue if we fail to
persist the sweeper state.
@tnull tnull force-pushed the 2024-04-sweeper-error-on-persistence-failure branch from c4b1c5c to afb452a Compare April 24, 2024 07:46
Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Ugh, good catch.

@tnull
Copy link
Contributor Author

tnull commented Apr 24, 2024

Hmm, the benchmark failure is unrelated it seems, but I'm not sure why it's flaky?

@tnull tnull merged commit 9a438ee into lightningdevkit:main Apr 24, 2024
15 of 16 checks passed
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.

4 participants