-
Notifications
You must be signed in to change notification settings - Fork 358
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
Intercept HTLC forwards for JIT channels #1835
Intercept HTLC forwards for JIT channels #1835
Commits on Nov 30, 2022
-
Persist pending intercepted htlcs in ChannelManager
No htlcs are intercepted yet, that will be added in upcoming commit(s) Co-authored-by: John Cantrell <[email protected]> Co-authored-by: Valentine Wallace <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 129e1f6 - Browse repository at this point
Copy the full SHA 129e1f6View commit details -
Add fake scid namespace for intercepted HTLCs
This is useful for LSPs who wish to create a just-in-time channel for end users receiving a lightning payment. These fake scids will be encoded into route hints in end user invoices, and signal to LDK to create an event triggering the JIT channel, after which the payment will be received. Co-authored-by: John Cantrell <[email protected]> Co-authored-by: Valentine Wallace <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a1268e - Browse repository at this point
Copy the full SHA 3a1268eView commit details -
Used in upcoming commit(s) so users can intercept forwarded HTLCs Co-authored-by: John Cantrell <[email protected]> Co-authored-by: Valentine Wallace <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5efc197 - Browse repository at this point
Copy the full SHA 5efc197View commit details -
Generate HTLCIntercepted event upon interceptable forward
And store the pending intercepted HTLC in pending_intercepted_htlcs Co-authored-by: John Cantrell <[email protected]> Co-authored-by: Valentine Wallace <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8fe7cbe - Browse repository at this point
Copy the full SHA 8fe7cbeView commit details -
Utils for forwarding intercepted htlcs + getting intercept scids
See ChannelManager::forward_intercepted_htlc and ChannelManager::get_intercept_scid for details Co-authored-by: John Cantrell <[email protected]> Co-authored-by: Valentine Wallace <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1f1b78 - Browse repository at this point
Copy the full SHA c1f1b78View commit details -
Allow failing back intercepted HTLCs
Co-authored-by: John Cantrell <[email protected]> Co-authored-by: Valentine Wallace <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f79ad2e - Browse repository at this point
Copy the full SHA f79ad2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ddcd9b0 - Browse repository at this point
Copy the full SHA ddcd9b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7809c55 - Browse repository at this point
Copy the full SHA 7809c55View commit details -
Configuration menu - View commit details
-
Copy full SHA for acff8f6 - Browse repository at this point
Copy the full SHA acff8f6View commit details