-
Notifications
You must be signed in to change notification settings - Fork 404
Store Payee
info with HTLCs
#1138
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
Store Payee
info with HTLCs
#1138
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1138 +/- ##
==========================================
+ Coverage 90.41% 90.47% +0.06%
==========================================
Files 68 68
Lines 35244 35273 +29
==========================================
+ Hits 31865 31914 +49
+ Misses 3379 3359 -20
Continue to review full report at Codecov.
|
6a026ca
to
61ed11a
Compare
Rebased and fixed fuzz build. |
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.
LGTM
`Payee` is expected to be used by users to get routes for payment retries, potentially with their own router. Thus, its helpful if it is pub, even if it is redundant with the last hop in the `path` field in `Events::PaymentPathFailed`.
61ed11a
to
2a7ed23
Compare
Good catch, testing the retry data in the expect macros is super trivial and easy way to get lots of coverage, done. |
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.
LGTM, please squash
This stores and tracks HTLC payee information with HTLCSource info, allowing us to provide it back to the user if the HTLC fails and ensuring persistence by keeping it with the HTLC itself as it passes between Channel and ChannelMonitor.
2a7ed23
to
1b99c93
Compare
Squashed without change, will land after CI:
|
Based on #1134, this builds on #1104 and ensures users always get payee information back in
PaymentPathFailed
events.