Skip to content

Conversation

@andozw
Copy link
Owner

@andozw andozw commented Apr 22, 2022

Splits these commits from lightningdevkit#1221 and lightningdevkit#1445 because they should be separate.

See lightningdevkit#1445 (review)

@andozw andozw force-pushed the seana.20220422.avoid-storing-FinalOnionHopData branch 3 times, most recently from 4da7916 to 16a6ad2 Compare April 30, 2022 16:32
...instead of accessing it via the `OnionPayload::Invoice` form.
This may be useful if we add MPP keysend support, but is directly
useful to allow us to drop `FinalOnionHopData` from `OnionPayload`.
@andozw andozw force-pushed the seana.20220422.avoid-storing-FinalOnionHopData branch 2 times, most recently from 1973f1f to c611aff Compare May 2, 2022 16:49
We only use it to check the amount when processing MPP parts, but
store the full object (including new payment metadata) in it.
Because we now store the amount in the parent structure, there is
no need for it at all in the `OnionPayload`. Sadly, for
serialization compatibility, we need it to continue to exist, at
least temporarily, but we can avoid populating the new fields in
that case.
@andozw andozw force-pushed the seana.20220422.avoid-storing-FinalOnionHopData branch from c611aff to fc77c57 Compare May 2, 2022 18:41
@andozw andozw merged commit e3a305c into main May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants