Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow custom data fields in the htlc payload #3670
With the introduction of the new tlv payload format in lightningnetwork/lightning-rfc#619, it has become possible to deliver arbitrary data to intermediate hops and/or the final destination in a standardized way.
This enables several new use cases. Some examples:
Most of the code that is required for this on the sender side was already added in #3362. In this PR, the rpc interface was extended to pass in a generic type-value map with a payment request.
However, this functionality was disabled in #3575 before the release of
The receiver also needs to process custom records when they arrive. Custom data should be written to the invoice database and rpc clients should be able to query for it and/or receive it as part of the invoice notifications. PR #3742 is implementing this.