mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
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).
This commit is contained in:
committed by
neil saitug
parent
8654c817da
commit
ce66466cfb
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user