Skip to content

BOLT 1: Define custom message type range#705

Merged
cdecker merged 1 commit into
masterfrom
b01-custom-message-range
Jan 21, 2020
Merged

BOLT 1: Define custom message type range#705
cdecker merged 1 commit into
masterfrom
b01-custom-message-range

Conversation

@t-bast
Copy link
Copy Markdown
Collaborator

@t-bast t-bast commented Nov 21, 2019

This PR defines a message type range for custom messages. The goal is to prevent unofficial messages from allocating types in the official range.

Experimentation and application-specific messages should have a way to choose "safe" message types that won't collude with a future spec-ed (official) message.

@t-bast t-bast requested review from pm47 and rustyrussell November 21, 2019 10:04
pm47
pm47 previously requested changes Nov 21, 2019
Comment thread 01-messaging.md Outdated
Comment thread 01-messaging.md Outdated
- MUST include all the fields annotated with that option.
- When defining custom messages:
- SHOULD pick a random `type` to avoid collision with other custom types.
- SHOULD pick an odd `type` identifiers when regular nodes should ignore the
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The it's ok to be odd rule isn't type-specific so there is no need to repeat it here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We chose to repeat it when we spec-ed the onion TLV namespace for experimentation; I did the same here for consistency but can remove it.

@t-bast t-bast added the Meeting Discussion Raise at next meeting label Nov 25, 2019
@cdecker
Copy link
Copy Markdown
Collaborator

cdecker commented Dec 9, 2019

Excellent proposal, this fits in perfectly with c-lightning's sendcustommsg RPC method and custommsg plugin hook (ElementsProject/lightning#3315) 👍

ACK dc60034

@t-bast
Copy link
Copy Markdown
Collaborator Author

t-bast commented Dec 9, 2019

Great, looks like we're all going in the same direction so let's make this official ;)

Copy link
Copy Markdown
Collaborator

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM ⛷

@ZmnSCPxj ZmnSCPxj mentioned this pull request Jan 21, 2020
@cdecker cdecker force-pushed the b01-custom-message-range branch from b606404 to 10e9a88 Compare January 21, 2020 12:29
@cdecker cdecker dismissed pm47’s stale review January 21, 2020 12:29

Addressed by fixup.

@cdecker
Copy link
Copy Markdown
Collaborator

cdecker commented Jan 21, 2020

Rebased and squashed fixups.

Merging following the spec meeting on 2020/01/20

@cdecker cdecker merged commit caca437 into master Jan 21, 2020
@t-bast t-bast deleted the b01-custom-message-range branch April 15, 2020 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Meeting Discussion Raise at next meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants