Benjamin Weintraub [ARCHIVE] on Nostr: π
Original date posted:2022-12-13 π Original message: Hi list, I have a ...
π
Original date posted:2022-12-13
π Original message:
Hi list,
I have a question about how update_fail_htlcs are handled. Consider this scenario: a node, potentially adversarial, forwards an HTLC along a channel that does not have the funds to support a payment of that size. How does the recipient of the HTLC respond?
I see this line in BOLT #2:
βuntil the corresponding HTLC is irrevocably committed in both sides' commitment transactions: MUST NOT send an update_fulfill_htlc, update_fail_htlc, or update_fail_malformed_htlc"
But this seems confusing to me in the context of the scenario I suggested. Is it saying that even though the channel cannot support the payment, the nodes still need to commit to it?
I assume that this interpretation is not correct, but then when is it okay for a node to send an update_fail_htlc? Immediately upon receiving an invalid transaction?
Any insight you could provide would be great.
Thanks in advance,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20221213/056c715c/attachment-0001.html>
Published at
2023-06-09 13:07:45Event JSON
{
"id": "1253143e60dcad0527b3ef709592752c1a7dd7512a2c3fcf9ec8c5e1a99b4018",
"pubkey": "d4882e22a16e704c732cefa159b483395bb032c66c58d9eb33c4f4fba84216c0",
"created_at": 1686316065,
"kind": 1,
"tags": [
[
"e",
"0952f94a6f94977dfb7c6a027abf6aeac71f2920b88edbdb0df43fe08af99afe",
"",
"reply"
],
[
"p",
"9456f7acb763eaab2e02bd8e60cf17df74f352c2ae579dce1f1dd25c95dd611c"
]
],
"content": "π
Original date posted:2022-12-13\nπ Original message:\nHi list,\n\n\nI have a question about how update_fail_htlcs are handled. Consider this scenario: a node, potentially adversarial, forwards an HTLC along a channel that does not have the funds to support a payment of that size. How does the recipient of the HTLC respond?\n\n\nI see this line in BOLT #2:\n\nβuntil the corresponding HTLC is irrevocably committed in both sides' commitment transactions: MUST NOT send an update_fulfill_htlc, update_fail_htlc, or update_fail_malformed_htlc\"\n\n\nBut this seems confusing to me in the context of the scenario I suggested. Is it saying that even though the channel cannot support the payment, the nodes still need to commit to it?\n\n\nI assume that this interpretation is not correct, but then when is it okay for a node to send an update_fail_htlc? Immediately upon receiving an invalid transaction?\n\n\nAny insight you could provide would be great.\n\n\nThanks in advance,\n\nBen\n\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20221213/056c715c/attachment-0001.html\u003e",
"sig": "629847e23209cf1dde8397f22265ac2c2d7ce831cb5a7cfb0c23d74df71616f1fa209e24d7a10ef4e672316edafcdda542c1d3c3590fc77ee528d537f54f3585"
}