Author: ZmnSCPxj 2020-03-24 11:15:34
Published on: 2020-03-24T11:15:34+00:00
In a conversation between Subhra and ZmnSCPxj, Subhra asked about c-lightning's HTLC acceptance process. ZmnSCPxj explained that irrevocably committed incoming HTLCs follow different paths depending on the result returned by the hook. Delaying the default "continue" result is enough to grief payments. On the other hand, Subhra asked about mimicking a scenario where B refuses to release the preimage in LND. ZmnSCPxj advised modifying LND code or asking the devs if there are hooks available. In C-Lightning, a plugin can be installed to handle htlc_accepted. The handler will wait for the target block height to grief before returning from the function.
Updated on: 2023-06-03T00:13:11.450625+00:00