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

keysend: just strip even unknown fields. #5645

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

rustyrussell
Copy link
Contributor

We've had reports of keyends failing, and indeed:

plugin-keysend: Experimental: Accepting the keysend payment despite having unknown even TLV type 34349334.
02e19b96774811eedd1ba5b26350950a184a7a0530b118eb653b13d5a026c24ebe-chan#1: Failing HTLC because of an invalid payload

Sure, we've made accepting weird TLVs a non-experimental option, but surely it's better to only (and automatically!) accept them in the keysend plugin where the problem is?

Signed-off-by: Rusty Russell [email protected]
Changelog-Fixed: Plugins: keysend now removes unknown even (technically illegal!) fields, to try to accept more payments.

Signed-off-by: Rusty Russell <[email protected]>
Changelog-Fixed: Plugins: `keysend` now removes unknown even (technically illegal!) fields, to try to accept more payments.
@rustyrussell rustyrussell added this to the v22.11 milestone Oct 3, 2022
Comment on lines +272 to +273
* (Keysend is not a design, it's a kludge by people who
* didn't read the spec, and Just Made Something Work). */
Copy link
Member

Choose a reason for hiding this comment

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

🤣

@cdecker
Copy link
Member

cdecker commented Oct 4, 2022

Oh wow, this is heavy handed, but I get it. The odd-is-ok in TLV has been pretty much sidestepped by applications that didn't bother reading the how and why in the spec, and now we're getting punished for being spec-compliant... 😢

ACK 9459d22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants