lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Add option to allow even custom messages to be sent

Open benthecarman opened this issue 3 years ago • 12 comments
trafficstars

Closes #4960

Adds an option --experimental-all-onion-messages that will behave like --experimental-onion-messages but also allow even numbered messages to be sent

benthecarman avatar Dec 08 '21 04:12 benthecarman

Renamed from --experimental-even-onion-messages to --experimental-all-onion-messages, I think this is more clear

benthecarman avatar Dec 08 '21 06:12 benthecarman

Can you write a test to verify that even messages are indeed forwarded to the plugin if enabled and drop the connection otherwise?

It'd also be helpful to get some rationale for the change. Are you working on a new sub-protocol or is this to build a plugin for compatibility with an existing sub-protocol?

cdecker avatar Dec 08 '21 11:12 cdecker

Can you write a test to verify that even messages are indeed forwarded to the plugin if enabled and drop the connection otherwise

Yes

It'd also be helpful to get some rationale for the change. Are you working on a new sub-protocol or is this to build a plugin for compatibility with an existing sub-protocol?

Yeah, I outlined in #4960 that DLCs use even numbered types for messaging and am planning on creating a plugin to send and receive the DLC messages.

benthecarman avatar Dec 08 '21 11:12 benthecarman

Excellent, just saw the original issue now, that makes sense to me. Sounds like a good experimental change, with no promise that it'll graduate, but the experimental deployment will inform us about the safety.

cdecker avatar Dec 08 '21 11:12 cdecker

Added a test but in places like here, the message is dropped. I am trying to use the experimental-accept-extra-tlv-types config, but don't know how to access it from channeld, openingd, closingd, etc, is there an easy way?

benthecarman avatar Dec 14 '21 10:12 benthecarman

Hmm, this will get much easier once my PRs drop which move this handling to connectd. That should be in the next week; can this wait?

rustyrussell avatar Dec 15 '21 03:12 rustyrussell

Hmm, this will get much easier once my PRs drop which move this handling to connectd. That should be in the next week; can this wait?

Yes, can you link them so I can rebase on top?

benthecarman avatar Dec 15 '21 03:12 benthecarman

First draft at #4985...

rustyrussell avatar Dec 20 '21 05:12 rustyrussell

Hmm, this will get much easier once my PRs drop which move this handling to connectd. That should be in the next week; can this wait?

Rebased on master, don't see how I have access to allow_even_custom_message inside of multiplex.c.

Is this something someone could help me with?

benthecarman avatar May 30 '22 05:05 benthecarman

@benthecarman we're looking to get an RC out this week, any chance you'll get a rebase / changes in in the next few days? If not I'll mark it for the next release.

niftynei avatar Jul 11 '22 02:07 niftynei

@benthecarman we're looking to get an RC out this week, any chance you'll get a rebase / changes in in the next few days? If not I'll mark it for the next release.

Hey sorry I won't have time in the next week or two. Last I touched this I wasn't really sure what to do next

benthecarman avatar Jul 11 '22 03:07 benthecarman

Removing milestone target for now, as this requires some work. Feel free to undraft as soon as you'd like me to re-review and assign to a milestone.

cdecker avatar Sep 22 '22 09:09 cdecker