HTLC interceptor height watching

Keep track of the block height and prevent channel force-closes.
Not Available
$4,000.00
Check Out Task
Task Bounty Details

6170

LND Issue

Days

Estimated Effort

Not Available

Current Status

$4,000.00

Paid in USD or equivalent BTC upon acceptance

LND Issue

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.

Prerequisite Skills

golang

Code Guidelines

Repository Code Guidelines Page

Definition of Done

Get a PR merged which results in a close of the linked issue

Check Out Task