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

Revenge of the legacy onion #5146

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Mar 30, 2022

"Too soon?"

"Too soon"

These are still happening on the network (and clboss was still sending them!), so a campaign has begun to warn people. Meanwhile we restore the minimal legacy we can (forwarding only).

Most of the time was coming up with a reliable test of the now-we-can't-generate legacy onions.

@rustyrussell rustyrussell added the protocol These issues are protocol level issues that should be discussed on the protocol spec repo label Mar 30, 2022
@rustyrussell rustyrussell added this to the v0.11 milestone Mar 30, 2022
@rustyrussell rustyrussell force-pushed the guilt/revenge-of-the-legacy-onion branch 2 times, most recently from 730bc9e to e188707 Compare March 30, 2022 04:30
Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

ACK e188707

@jb55
Copy link
Collaborator

jb55 commented Mar 30, 2022

tACK e188707

@rustyrussell
Copy link
Contributor Author

rustyrussell commented Mar 31, 2022

Included flake fix (unrelated)

Ack 58f0ed1

@rustyrussell rustyrussell force-pushed the guilt/revenge-of-the-legacy-onion branch from 59cce61 to c0f7880 Compare March 31, 2022 03:03
We never called this except from plugins, which didn't test schema.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Using a canned sendonion call from an old version (v0.10.2), where I
forced it to use legacy onion for l2.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Partial revert of 43a833e
"lightningd: remove support for legacy onion format."; we restore the
ability to decode legacy onions for forwarding, but not to generate them.
(We don't accept them properly since making payment_secret compulsory
anyway, so no real change there!)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Removed: Protocol: ... but we still forward legacy HTLC onions for now.
Suggested-by: @t-bast
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `listforwards` has new entry `style`, currently "legacy" or "tlv".
Gossipd didn't actually suppress all gossip, resulting in a flake!
Doing it in connectd now makes much more sense.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/revenge-of-the-legacy-onion branch from c0f7880 to 58f0ed1 Compare March 31, 2022 05:56
@rustyrussell rustyrussell merged commit 9bddfc2 into ElementsProject:master Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
protocol These issues are protocol level issues that should be discussed on the protocol spec repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants