-
Notifications
You must be signed in to change notification settings - Fork 942
Ability to add custom TLV to update_add_htlc message #6663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That is expected, since the I will add this new return field to the |
I'm revisiting this subject with the If there would be a setting in CLN to allow adding extra TLVs to the htlc_accepted hook payload, and CLN would pass these TLVs around up to sending the
|
Hey team. Would love to see this prioritized if possible! Thanks for all the work you’re already putting in. |
@nepet and I had a good discussion on how this could be implemented, since he's also working on an LSPS implementation. So this should happen soon |
The LSPS2 specification requires the LSP to add a custom
extra_fee
TLV to theupdate_add_htlc
message. An LSP run on top of CLN will intercept htlcs using thehtlc_accepted
hook. For some htlcs, LSP fees will be deducted from the outgoing amount, by modifying the onion payload.extra_fee
record. (65537)I tried adding the
extra_fee
record to the returned payload in thehtlc_accepted
hook, but I get an error:Failing HTLC because of an invalid payload
. I assume this is because the TLV is not recognized. The only option currently available appears to be to enable all unknown TLVs on the node, but that is not what I want.Relevant section in LSPS2: https://github.com/BitcoinAndLightningLayerSpecs/lsp/blob/a1d8ca8439e730d6a097585f7e1d091f12f9afb0/LSPS2/README.md?plain=1#L950-L966
So: Add support for custom TLVs for the
update_add_htlc
message.The text was updated successfully, but these errors were encountered: