What is Nostr?
Benjamin Weintraub [ARCHIVE] /
npub16jy…9gxw
2023-06-09 13:07:45
in reply to nevent1q…0fmj

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>;
Author Public Key
npub16jyzug4pdecycueva7s4ndyr89dmqvkxd3vdn6encn60h2zzzmqq0n9gxw