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

#2970 Followups #3025

Closed

Conversation

TheBlueMatt
Copy link
Collaborator

Fixes #3002. I went to go see if it was practical to do the first commit and by the time I finished checking if it was practical I'd basically written the commit anyway so figured I'd just open a PR instead of making someone else do it. Has to go in the same release or it'll be broken by backwards compat.

This saves some space on disk and a bit of space in memory, but
also avoids some unnecessary `clone`s. As this was added since the
last release there is no need for backwards compat handling.
An `InvoiceRequest` can overpay for an `Offer` which would be
reflected back to the recipient via the `amount_msats` field, but
its somewhat deceptive as the sender can *also* then further
overpay in the HTLC(s) themselves. The total overpayment is already
communicated in the `Event::ClaimablePayment` so we simply drop the
`InvoiceRequestFields` field here.

Fixes lightningdevkit#3002
@TheBlueMatt TheBlueMatt added this to the 0.0.123 milestone Apr 25, 2024
@codecov-commenter
Copy link

Codecov Report

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

Project coverage is 89.22%. Comparing base (dfb250b) to head (90c919c).
Report is 3 commits behind head on main.

Files Patch % Lines
lightning/src/ln/channelmanager.rs 70.00% 6 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3025      +/-   ##
==========================================
+ Coverage   89.15%   89.22%   +0.07%     
==========================================
  Files         118      118              
  Lines       97724    98153     +429     
  Branches    97724    98153     +429     
==========================================
+ Hits        87122    87575     +453     
+ Misses       8363     8341      -22     
+ Partials     2239     2237       -2     

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

@TheBlueMatt
Copy link
Collaborator Author

Oops, this is broken in ways #3028 is not.

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.

Discuss/Do #2970 followups
2 participants