mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
sphinx: Promote TLV payloads to be non-experimental
This is what provides us with the ability to add custom fields in the payload when using `createonion` so make sure we actually have access to it. Changelog-Changed: The TLV payloads for the onion packets are no longer considered an experimental feature and generally available. Changelog-Added: Plugins may now handle modern TLV-style payloads via the `htlc_accepted` hook Signed-off-by: Christian Decker <@cdecker>
This commit is contained in:
parent
de6bf3e421
commit
714b57241b
@ -542,11 +542,6 @@ static bool sphinx_write_frame(u8 *dest, const struct sphinx_hop *hop)
|
|||||||
size_t padding_size;
|
size_t padding_size;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
||||||
#if !EXPERIMENTAL_FEATURES
|
|
||||||
if (hop->type != SPHINX_V0_PAYLOAD)
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Backwards compatibility for the legacy hop_data format. */
|
/* Backwards compatibility for the legacy hop_data format. */
|
||||||
if (hop->type == SPHINX_V0_PAYLOAD)
|
if (hop->type == SPHINX_V0_PAYLOAD)
|
||||||
dest[pos++] = 0x00;
|
dest[pos++] = 0x00;
|
||||||
|
Loading…
Reference in New Issue
Block a user