-
Notifications
You must be signed in to change notification settings - Fork 411
Minor doc nits on the new coop close reason variants #2876
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
Conversation
WalkthroughThe update enhances the 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.
/// | ||
/// This was only set in versions of LDK prior to 0.0.122. | ||
// Can be removed once we disallow downgrading to 0.0.121 | ||
LegacyCooperativeClosure, | ||
/// The channel was closed after negotiating a cooperative close and we've now broadcasted | ||
/// the cooperative close transaction. This indicates that the shutdown was initiated by our | ||
/// counterparty. | ||
/// | ||
/// In rare cases where we initiated closure immediately prior to shutting down without | ||
/// persisting, this value may be provided for channels we initiated closure for. |
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.
The comments for LegacyCooperativeClosure
, CounterpartyInitiatedCooperativeClosure
, and LocallyInitiatedCooperativeClosure
variants in the ClosureReason
enum do not provide clear, distinct explanations for each variant. This can lead to confusion about the specific circumstances under which each variant is used.
Consider refining the comments to clearly distinguish between the scenarios that lead to each cooperative closure variant being used.
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2876 +/- ##
========================================
Coverage 89.16% 89.17%
========================================
Files 116 116
Lines 93259 93377 +118
Branches 93259 93377 +118
========================================
+ Hits 83158 83269 +111
- Misses 7569 7577 +8
+ Partials 2532 2531 -1 ☔ View full report in Codecov by Sentry. |
No description provided.