-
Notifications
You must be signed in to change notification settings - Fork 411
Fix silent merge conflict introduced in d3ddf15 @TheBlueMatt #2886
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
Fix silent merge conflict introduced in d3ddf15 @TheBlueMatt #2886
Conversation
WalkthroughThe update involves refining the handling of 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/ln/functional_tests.rs (2 hunks)
- lightning/src/ln/msgs.rs (8 hunks)
Additional comments: 10
lightning/src/ln/msgs.rs (8)
- 1790-1817: The
Writeable
implementation forAcceptChannel
uses theencode_tlv_stream!
macro for optional fields. Ensure that the TLV fields are correctly optional and that the encoding matches the Lightning Network specifications.- 1787-1849: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1824-1871]
The
Readable
implementation forAcceptChannel
correctly reads fields and uses thedecode_tlv_stream!
macro for optional TLV fields. Ensure that the TLV fields are correctly optional and that the decoding matches the Lightning Network specifications.
- 1879-1902: The
Writeable
implementation forAcceptChannelV2
correctly writes fields and uses theencode_tlv_stream!
macro for optional fields. Ensure that the TLV fields are correctly optional and that the encoding matches the Lightning Network specifications.- 1852-1923: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1880-1952]
The
Readable
implementation forAcceptChannelV2
correctly reads fields and uses thedecode_tlv_stream!
macro for optional TLV fields. Ensure that the TLV fields are correctly optional and that the decoding matches the Lightning Network specifications.
- 2173-2184: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [2157-2181]
Review the
Writeable
implementation forOpenChannel
to ensure that fields are correctly written and that the encoding matches the Lightning Network specifications.
- 2256-2268: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [2239-2265]
Review the
Writeable
implementation forOpenChannelV2
to ensure that fields are correctly written and that the encoding matches the Lightning Network specifications.
- 2210-2242: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [2157-2265]
Verify the correctness of the
impl_writeable_msg!
macros used for various message structs to ensure that all necessary fields are covered and that the encoding matches the Lightning Network specifications.
- 2210-2242: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [2157-2265]
Review the tests for encoding and decoding of various message structs to ensure they cover a wide range of scenarios and correctly test the serialization/deserialization logic.
lightning/src/ln/functional_tests.rs (2)
- 10535-10535: The assertion correctly accesses
temporary_channel_id
throughcommon_fields
, aligning with the PR's objective to update how channel IDs are handled in tests. This change ensures that the test reflects the updated structure of theopen_channel_msg
struct.- 10578-10578: Similar to the previous hunk, this assertion also correctly accesses
temporary_channel_id
throughcommon_fields
. The consistency in handlingtemporary_channel_id
across different tests is crucial for maintaining the integrity of the test suite.
No description provided.