Skip to content

htlcswitch/hop: new package for hop payload parsing/encapsulation#3466

Merged
joostjager merged 4 commits into
lightningnetwork:masterfrom
cfromknecht:htlcswitch-hop
Sep 5, 2019
Merged

htlcswitch/hop: new package for hop payload parsing/encapsulation#3466
joostjager merged 4 commits into
lightningnetwork:masterfrom
cfromknecht:htlcswitch-hop

Conversation

@cfromknecht
Copy link
Copy Markdown
Contributor

@cfromknecht cfromknecht commented Sep 4, 2019

Builds on #3441

This PR begins the process of moving our hop payload processing within lnd into its own subpackage, htlcswitch/hop. This will allow the processing to be imported into the htlcswitch and contractcourt, and also have a single hop.Payload object that can be shared with the invoice registry. The last four commits are predominately a code move, but it will be nice to make progress on the more trivial things so we can do less rebasing on #3442

This will also allow @joostjager to add his follow up in moving the HopIterator components into this package, and establish a stable base to continue mpp/amp development

@cfromknecht cfromknecht added code health Related to code commenting, refactoring, and other non-behaviour improvements htlcswitch mpp labels Sep 4, 2019
Comment thread htlcswitch/hop/payload.go Outdated
Comment thread htlcswitch/iterator.go Outdated
Comment thread htlcswitch/hop/payload.go Outdated
@cfromknecht cfromknecht added this to the 0.8.0 milestone Sep 4, 2019
Copy link
Copy Markdown
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🍡

@joostjager joostjager merged commit 6638e1d into lightningnetwork:master Sep 5, 2019
@cfromknecht cfromknecht deleted the htlcswitch-hop branch October 16, 2019 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code health Related to code commenting, refactoring, and other non-behaviour improvements htlcswitch mpp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants