Skip to content

#3775 follow-ups #3945

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
merged 3 commits into from
Jul 22, 2025
Merged

Conversation

tankyleo
Copy link
Contributor

Quick follow-ups from #3775, will address the ones remaining in standalone PRs

tankyleo added 3 commits July 21, 2025 21:19
In 85cc09e, we updated this member to include the sum of dust HTLCs on
the commitment transaction, any elided anchors, as well as the sum of
the msat amounts rounded down from non-dust HTLCs.
`TxBuilder` will eventually be a public trait, and this debug assertion
could catch any inconsistencies in the implementations of this trait.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jul 22, 2025

👋 Thanks for assigning @TheBlueMatt as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tankyleo tankyleo requested a review from TheBlueMatt July 22, 2025 05:00
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

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

Project coverage is 89.01%. Comparing base (eac01d0) to head (3294d45).

Files with missing lines Patch % Lines
lightning/src/ln/channel.rs 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3945      +/-   ##
==========================================
- Coverage   89.02%   89.01%   -0.02%     
==========================================
  Files         167      167              
  Lines      121800   121806       +6     
  Branches   121800   121806       +6     
==========================================
- Hits       108434   108421      -13     
- Misses      10953    10978      +25     
+ Partials     2413     2407       -6     
Flag Coverage Δ
fuzzing 22.73% <33.33%> (+<0.01%) ⬆️
tests 88.83% <83.33%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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.

Landing as trivial

@@ -774,6 +774,8 @@ pub enum Balance {
amount_satoshis: u64,
/// The transaction fee we pay for the closing commitment transaction. This amount is not
/// included in the [`Balance::ClaimableOnChannelClose::amount_satoshis`] value.
/// This amount includes the sum of dust HTLCs on the commitment transaction, any elided anchors,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit you might heave meant to include a newline here to create a paragraph break. when rustdocs renders it ignores line breaks unless there's a full empty line between sections of text, which creates a paragraph break. Makes the in-source docs look a little tall but the rendering isn't that bad.

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

@TheBlueMatt TheBlueMatt merged commit b87a8e0 into lightningdevkit:main Jul 22, 2025
28 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.

3 participants