-
Notifications
You must be signed in to change notification settings - Fork 411
Small comment tweaks #2878
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
Small comment tweaks #2878
Conversation
WalkthroughThis update includes minor, yet significant improvements in the code documentation for a clearer understanding of the internal workings. Specifically, it fixes a typo in a comment within Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- lightning/src/chain/channelmonitor.rs (1 hunks)
- lightning/src/ln/channel.rs (2 hunks)
Files skipped from review due to trivial changes (1)
- lightning/src/chain/channelmonitor.rs
Additional comments: 2
lightning/src/ln/channel.rs (2)
- 250-257: The added comments in
InboundHTLCDetails
struct provide valuable context about the HTLC state in the state machine and handling of new states across LDK versions. Ensure the reference toInboundHTLCStateDetails
is accurate and accessible for developers looking for detailed state information.- 436-443: The comments added to
OutboundHTLCDetails
struct mirror those inInboundHTLCDetails
, offering insights into the HTLC state and its evolution across LDK versions. Similar to the previous hunk, confirm the accuracy and accessibility of theOutboundHTLCStateDetails
reference for comprehensive state details.
/// See [`InboundHTLCStateDetails`] for information on the specific states. | ||
/// | ||
/// LDK will always fill this field in, but when downgrading to prior versions of LDK, new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we include the specific version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no specific version. Its entirely speculative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also consider making it not an Option, but then we'd fail to read a ChannelDetails just because of an upgrade.
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2878 +/- ##
==========================================
- Coverage 89.13% 89.12% -0.02%
==========================================
Files 115 115
Lines 93522 93522
Branches 93522 93522
==========================================
- Hits 83359 83347 -12
- Misses 7635 7641 +6
- Partials 2528 2534 +6 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the comment! 🙏
No description provided.