rust-lightning
rust-lightning copied to clipboard
Introduce Reply Paths for BOLT12 Invoice in Offers Flow.
This PR builds on #3087 and addresses this comment.
Changes:
- Updates the Offers message flow to include
reply_pathwith the sentBOLT12Invoice. - Ensures that in case of an error, the counterparty can send back any
InvoiceErroralong thereply_path. - Updates the Offers test to check for the invoice's
reply_pathwherever applicable.
Codecov Report
Attention: Patch coverage is 77.04918% with 14 lines in your changes missing coverage. Please review.
Project coverage is 90.39%. Comparing base (
5e62df7) to head (7b49993). Report is 62 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| lightning/src/ln/channelmanager.rs | 66.66% | 9 Missing :warning: |
| lightning/src/offers/signer.rs | 68.75% | 5 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #3163 +/- ##
==========================================
+ Coverage 89.82% 90.39% +0.57%
==========================================
Files 126 126
Lines 103024 108017 +4993
Branches 103024 108017 +4993
==========================================
+ Hits 92543 97644 +5101
- Misses 7769 7815 +46
+ Partials 2712 2558 -154
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Needs rebase now.
Updated from pr3163.01 to pr3163.02 (diff): Addressed @jkczyz and @TheBlueMatt comments
Changes:
- Rebase on main.
- Introduce a fixup commit to introduce
contextinrespond_with_reply_path.
Please include details about what you're doing and why in the commit messages.
Please include details about what you're doing and why in the commit messages.
Sorry about being lax when reviewing this. @shaavan I recommend this reference, which we mention in the project contributor guidelines: https://cbea.ms/git-commit/
I'm usually pretty lax as long as its clear from the code what's going on, but in this case I look at the commit and we're just adding a blinded path, which doesn't tell me anything about why. I have some context from a separate commit in a different PR, but I don't want to rely on that :)
Updated from pr3163.02 to pr3163.03 (diff): Addressed @TheBlueMatt and @jkczyz comments
Changes:
- Squashed the commits
- Update the Commit description to be clearly detailed.
Thanks, @TheBlueMatt for the suggestion, and @jkczyz for the resource!
Updated from pr3163.04 to pr3163.05 (diff):
Changes:
- Moved the relevant change to the relevant commit to have a clean commit history.
Updated from pr3163.06 to pr3163.07 (diff): Addressed @jkczyz comment
- Update the check in a test to maintain channel setup consistency with the other tests.
Updated from pr3163.07 to pr3163.08 (diff): Addressed @jkczyz comment
- Remove an extra redundant node introduced earlier in the test.
Updated from pr3163.08 to pr3163.09 (diff): Addressed @TheBlueMatt comment
Changes:
- Introduce HMAC calculation and verification for OffersContext::InboundPayment.
Updated from pr3163.09 to pr3163.10 (diff): Addressed @jkczyz comments
Changes:
- Update docs.
- Always use new nonce for the reply path sent with
Bolt12Invoice.