From ce66466cfbd88a706d4aacc45fd4a33d0dc6e125 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 17 Jun 2021 11:52:50 +0200 Subject: [PATCH] opts: Add option to register extra TLV types to accept Incoming HTLCs are rejected by the HTLC logic if the payload contains an even type that `lightningd` doesn't recognize. This is to prevent us from accidentally accepting a payment that has extra semantics attached (for example if we get a keysend payment and don't know what to do with the TLV field containing the message we should reject it, otherwise the overall semantics of the message delivery fail). --- lightningd/options.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index 1fceab931..ac43ece55 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -1484,8 +1484,12 @@ static void add_config(struct lightningd *ld, * --plugin for each one, so ignore these */ #if EXPERIMENTAL_FEATURES } else if (opt->cb_arg == (void *)opt_set_accept_extra_tlv_types) { -#endif /* TODO Actually print the option */ +#endif +#if DEVELOPER + } else if (strstarts(name, "dev-")) { + /* Ignore dev settings */ +#endif } else { /* Insert more decodes here! */ abort();