-
Notifications
You must be signed in to change notification settings - Fork 405
Support decoding HTLC onions once fully committed #2845
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
Merged
TheBlueMatt
merged 15 commits into
lightningdevkit:main
from
wpaulino:decode-htlc-onion-when-committed
Mar 28, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3c24a13
Don't consume readers with FixedLengthReader
wpaulino c096a24
Support Vec serialization that include element length prefix
wpaulino 4ad00f4
Track incoming UpdateAddHTLC until HTLC resolution
wpaulino 60ddd5d
Remove unreachable handling of htlc_forwards upon channel_reestablish
wpaulino 0b38b39
Track pending update_add_htlcs in ChannelManager for later processing
wpaulino e255b23
Add new HTLCDestination variant for invalid onion
wpaulino 3f940d3
Add is_intro_node_blinded_forward helper for onion_utils::Hop
wpaulino 0073e49
Refactor HTLCFailureMsg generation out from decode_update_add_htlc_onion
wpaulino cc1651b
Refactor outgoing HTLC checks out from decode_update_add_htlc_onion
wpaulino b9ca578
Refactor outgoing channel lookup out from decode_update_add_htlc_onion
wpaulino cc7faa3
Only include channel_update in failure if needed by error code
wpaulino 2edc5b2
Refactor incoming HTLC accept checks out from Channel::update_add_htlc
wpaulino 7fe2582
Consider pending decode_update_add_htlcs when pushing forward event
wpaulino a6c9128
Refactor forward_htlcs to return whether to push a forward event
wpaulino fe65648
Decode update_add_htlc onions before forwarding HTLCs
wpaulino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
HTLCDestination
sounds pretty innaccurate to me now. Would be nice to rename it, maybe in follow-up.