Skip to content

#2970 Followups#3025

Closed
TheBlueMatt wants to merge 2 commits intolightningdevkit:mainfrom
TheBlueMatt:2024-04-2970-followups
Closed

#2970 Followups#3025
TheBlueMatt wants to merge 2 commits intolightningdevkit:mainfrom
TheBlueMatt:2024-04-2970-followups

Conversation

@TheBlueMatt
Copy link
Copy Markdown
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
Copy Markdown

codecov-commenter commented Apr 25, 2024

Codecov Report

❌ Patch coverage is 72.72727% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.22%. Comparing base (dfb250b) to head (90c919c).
⚠️ Report is 4118 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/channelmanager.rs 70.00% 6 Missing ⚠️
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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheBlueMatt
Copy link
Copy Markdown
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