LND contains an API that allows the caller to intercept incoming HTLCs. For each HTLC, the caller can decide what to do with it: fail, settle or resume. For some applications, it is required for the caller to hold on to the HTLC for a while. This introduces the risk that the caller holds on for the HTLC too long, leading to force-closure of the channel.
The goal of this task is to extend the HTLC interceptor logic in LND to watch the current block height and fail HTLCs before they can trigger a force-close when nothing is heard back from the interceptor client.
Get a PR merged which results in a close of the linked issue