Skip to content

rustfmt: move channel acceptance tests into own file and format #3797

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

carlaKC
Copy link
Contributor

@carlaKC carlaKC commented May 23, 2025

Depends on #3792, as requested in review.

Only last 2 commits reviewable in this PR.

carlaKC and others added 9 commits May 21, 2025 11:09
Useful for the commits that follow where we add more downgrade tests.
To allow testing along the way in this PR, turn on negotiation of
zero fee channels.

Co-authored-by: Matt Corallo <[email protected]>
Sender: MUST set `feerate_per_kw` to zero
Receiver: MUST fail the channel if `feerate_per_kw` != 0

Co-authored-by: Matt Corallo <[email protected]>
Like anchor channels, these channels require that the user reserves a
UTXO to bump the channel. If we automatically accept this channel type
and the user does not have such reserve available, they are at risk of
losing funds because they cannot fee bump the channel.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented May 23, 2025

I've assigned @jkczyz 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.

Copy link

codecov bot commented May 23, 2025

Codecov Report

Attention: Patch coverage is 97.02381% with 10 lines in your changes missing coverage. Please review.

Project coverage is 90.59%. Comparing base (22908ab) to head (26032a9).
Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/channel_acceptance_tests.rs 97.27% 4 Missing ⚠️
lightning/src/ln/channel.rs 96.15% 2 Missing and 1 partial ⚠️
lightning/src/ln/functional_tests.rs 94.11% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3797      +/-   ##
==========================================
+ Coverage   89.81%   90.59%   +0.77%     
==========================================
  Files         159      160       +1     
  Lines      128672   134636    +5964     
  Branches   128672   134636    +5964     
==========================================
+ Hits       115571   121970    +6399     
+ Misses      10428    10073     -355     
+ Partials     2673     2593      -80     

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

@ldk-reviews-bot ldk-reviews-bot requested a review from jkczyz May 23, 2025 18:41
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