Skip to content
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

Move accept_channel checks into ChannelContext::do_accept_channel_checks #3123

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

dunxen
Copy link
Contributor

@dunxen dunxen commented Jun 13, 2024

This is done ahead of getting the dual-funding implementation to reduce refactoring noise there.

See #2302.

@dunxen dunxen mentioned this pull request Jun 13, 2024
4 tasks
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 75.20000% with 31 lines in your changes missing coverage. Please review.

Project coverage is 89.90%. Comparing base (07f3380) to head (0881b24).

Files Patch % Lines
lightning/src/ln/channel.rs 75.20% 29 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    #3123      +/-   ##
==========================================
- Coverage   89.90%   89.90%   -0.01%     
==========================================
  Files         121      121              
  Lines       99170    99181      +11     
  Branches    99170    99181      +11     
==========================================
+ Hits        89159    89164       +5     
+ Misses       7408     7407       -1     
- Partials     2603     2610       +7     

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

@@ -2146,6 +2146,141 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
}
}

pub fn do_accept_channel_checks(
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems all the other pub methods here have doc comments. Should this, too?

TheBlueMatt
TheBlueMatt previously approved these changes Jun 13, 2024
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.

Could use a doc comment like @tnull suggested, otherwise LGTM.

Copy link
Contributor

@optout21 optout21 left a comment

Choose a reason for hiding this comment

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

LGTM

…ecks`

This is done ahead of getting the dual-funding implementation to reduce
refactoring noise there.
Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM

@tnull tnull merged commit baefe5a into lightningdevkit:main Jun 17, 2024
14 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.

5 participants