-
Couldn't load subscription status.
- Fork 421
Return an error when the intercept SCID is unknown to the LSPS2 service #4160
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
Conversation
HTLCs can be intercepted for multiple reasons unrelated to this handler: - Other HTLC interceptors might have generated intercept SCIDs. - The SCID of a closed channel might have fallen into the fake SCID namespace. The LSPS2 handler needs to indicate whether the specific SCID was known to it, so other handlers can be called or the HTLC can be failed back.
|
👋 Thanks for assigning @tnull as a reviewer! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4160 +/- ##
==========================================
- Coverage 88.77% 88.74% -0.04%
==========================================
Files 180 180
Lines 136622 136624 +2
Branches 136622 136624 +2
==========================================
- Hits 121293 121252 -41
- Misses 12517 12559 +42
- Partials 2812 2813 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 but would like @martinsaposnic or @tnull to have a look since I haven't reviewed lightning-liquidity code
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
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 1d2b0ed
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.
Makes sense, but I still think we need to do a better job allowing to discern different error variants. Now mentioned this in #4074 and tagged the latter 0.3.
HTLCs can be intercepted for multiple reasons unrelated to this handler:
The LSPS2 handler needs to indicate whether the specific SCID was known to it, so other handlers can be called or the HTLC can be failed back.
Returning a boolean is an option as well.
This is a continuation of lightningdevkit/lightning-liquidity#138.