Skip to content
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

Remove support for legacy Sphinx payloads #2190

Merged
merged 2 commits into from
Sep 5, 2022
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Feb 25, 2022

We previously supported a 65-bytes fixed-size sphinx payload, which has been deprecated in favor of variable length payloads containing a tlv stream (see lightning/bolts#619).

It looks like the whole network now supports the variable-length format, so we can stop accepting the old one. It is also being removed from the spec (see lightning/bolts#962).

@t-bast t-bast requested review from pm47 and sstone February 25, 2022 11:20
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

That is some serious cleanup 🧹 💨

pm47
pm47 previously approved these changes Mar 25, 2022
thomash-acinq
thomash-acinq previously approved these changes Mar 25, 2022
@t-bast
Copy link
Member Author

t-bast commented Mar 25, 2022

Thanks for the reviews! Actually we should probably hold off on merging this, when looking at the crypto.sphinx.onion-payload-format metric on our node it looks like a non-negligible portion of the payments we relay are still using the old format...so there may be an implementation out there that supports the new format but still encodes with the legacy one (as eclair did earlier)?
I'll wait for feedback from other implementations before merging, we don't want to lose too much relay fees by deploying this.

@t-bast t-bast marked this pull request as draft April 5, 2022 08:19
We previously supported a 65-bytes fixed-size sphinx payload, which has
been deprecated in favor of variable length payloads containing a tlv
stream (see lightning/bolts#619).

It looks like the whole network now supports the variable-length format,
so we can stop accepting the old one. It is also being removed from the
spec (see lightning/bolts#962).
@t-bast t-bast dismissed stale reviews from thomash-acinq and pm47 via 2f18513 September 5, 2022 15:35
@t-bast t-bast marked this pull request as ready for review September 5, 2022 15:46
@t-bast t-bast merged commit 40b2d44 into master Sep 5, 2022
@t-bast t-bast deleted the remove-legacy-sphinx-format branch September 5, 2022 16:22
fiatjaf added a commit to fiatjaf/scoin that referenced this pull request Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants