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

Fix ser for PaymentRelay and PaymentConstraints #2936

Conversation

valentinewallace
Copy link
Contributor

Two fields were serialized as u32/u64 when the spec says tu32/tu64.

This caused lack of interop when using CLN/Eclair as forwarding nodes for blinded payment paths.

H/t to @orbitalturtle for catching this! It's my bug, sorry y'all.

Two fields were serialized as u32/u64 when the spec said *tu32/tu64*.
/facepalm.
@valentinewallace valentinewallace added this to the 0.0.122 milestone Mar 14, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 83.33333% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 91.19%. Comparing base (4bab9c8) to head (ef02b9e).
Report is 220 commits behind head on main.

Files Patch % Lines
lightning/src/blinded_path/payment.rs 83.33% 0 Missing and 4 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2936      +/-   ##
==========================================
+ Coverage   88.55%   91.19%   +2.64%     
==========================================
  Files         115      118       +3     
  Lines       92309   110658   +18349     
  Branches    92309   110658   +18349     
==========================================
+ Hits        81745   100917   +19172     
+ Misses       8063     7345     -718     
+ Partials     2501     2396     -105     

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

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.

Oof, thanks.

## Bug fixes

* LDK previously serialized `PaymentRelay::fee_base_msat` as a u32 when it
should have been serialized as a tu32. Similarly, we were serializing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets not write release notes with the technical internal details, but rather focus on the resulting behavior that is user-facing.

@TheBlueMatt TheBlueMatt merged commit 2c9dbb9 into lightningdevkit:main Mar 18, 2024
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.

None yet

4 participants