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

Allow even unknown messages, by registration, and allow sending them #6689

Merged

Conversation

rustyrussell
Copy link
Contributor

Closes: #4963 (ancient)
Closes: #4960

@rustyrussell rustyrussell added this to the v23.11 milestone Sep 18, 2023
@rustyrussell rustyrussell changed the title Guilt/allow even messages Allow even unknown messages, by registration, and allow sending them Sep 18, 2023
@rustyrussell rustyrussell force-pushed the guilt/allow-even-messages branch from 41966f0 to bb7f9a0 Compare September 19, 2023 01:04
@endothermicdev
Copy link
Collaborator

Looks good technically, though it needs a rebase. I know "It's your funeral," but maybe we should log a single message the first time the node sends a custom even message. That way there's at least a hint for the operator to grep for?

types, since that may cause issues with the internal state tracking of
Core Lightning.
Core Lightning. We do (as of *v23.11*) allow sending of even types, but note that peers (as per the spec) will disconnect on receiving unknown even types.
Copy link
Collaborator

Choose a reason for hiding this comment

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

inconsistent line breaks

@rustyrussell
Copy link
Contributor Author

Looks good technically, though it needs a rebase. I know "It's your funeral," but maybe we should log a single message the first time the node sends a custom even message. That way there's at least a hint for the operator to grep for?

Good advice! Made the first one INFO, the DEBUG level after that.

@rustyrussell rustyrussell force-pushed the guilt/allow-even-messages branch from bb7f9a0 to 8dedd24 Compare October 16, 2023 23:04
@rustyrussell
Copy link
Contributor Author

Rebased, and added log message.

@rustyrussell rustyrussell force-pushed the guilt/allow-even-messages branch 2 times, most recently from 37f6d15 to 4d57992 Compare October 23, 2023 05:32
@rustyrussell
Copy link
Contributor Author

Fixed sanitizer complaint about memcpy NULL, and rebased onto #6802 for flake fixes.

Changelog-Added: Plugins: plugins can now specify (unknown) even messages we should accept from peers.
Signed-off-by: Rusty Russell <[email protected]>
We re-send whenever a plugin which allows them starts/finishes.

Signed-off-by: Rusty Russell <[email protected]>
It's your funeral!

Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell force-pushed the guilt/allow-even-messages branch from 4d57992 to f291af4 Compare October 23, 2023 11:30
@rustyrussell rustyrussell merged commit dfe207d into ElementsProject:master Oct 24, 2023
37 of 38 checks passed
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.

Add ability to send even numbered messages in sendcustommsg
2 participants