lnrpc+rpcserver: encode custom records as custom channel data

With this commit we encode the custom records as a TLV stream into the
custom channel data field of the invoice HTLC.
This allows the custom data parser to parse those records and replace it
with human-readable JSON on the RPC interface.
This commit is contained in:
Oliver Gugger committed 2024-09-19 09:21:38 +02:00
1 parent bbae7148aa
commit d37df75bc0
9 files changed
+144 -5

No files matched your search

+5
View File
@@ -5602,6 +5602,11 @@
"amp": {
"$ref": "#/definitions/lnrpcAMP",
"description": "Details relevant to AMP HTLCs, only populated if this is an AMP HTLC."
},
"custom_channel_data": {
"type": "string",
"format": "byte",
"description": "Custom channel data that might be populated in custom channels."
}
},
"title": "Details of an HTLC that paid to an invoice"