lnd icon indicating copy to clipboard operation
lnd copied to clipboard

lnwallet: require fee reserve routing node inc. anchor channels

Open cfromknecht opened this issue 4 years ago • 1 comments

This commit restricts the funding case for incoming anchor channels when a node has no on-chain fee reserve such that this may only happen when the node is not configured for forwarding htlcs.

This is an attempt to disallow a potentially dangerous case where a node has no utxos available to sweep a disputed HTLC on an upstream channel with the preimage. Failure to do so allows the upstream node to timeout the HTLC and take their funds back, resulting in loss of funds for the intermediary.

We permit this to occur when the node is not configured for routing because the situation can't result in a loss of funds scenario. The worst case is that the HTLC remains on chain, and can be timed out indefinitely (e.g. by adding some funds to the node at a later point int time) since there is not upstream deadline to meet.

cfromknecht avatar Jan 19 '21 20:01 cfromknecht

@cfromknecht, remember to re-request review from reviewers when ready

lightninglabs-deploy avatar Sep 13 '22 06:09 lightninglabs-deploy

@cfromknecht, remember to re-request review from reviewers when ready

lightninglabs-deploy avatar Nov 15 '22 11:11 lightninglabs-deploy

@cfromknecht, remember to re-request review from reviewers when ready

lightninglabs-deploy avatar Jul 25 '23 11:07 lightninglabs-deploy

Closing due to inactivity

lightninglabs-deploy avatar Jul 28 '23 13:07 lightninglabs-deploy

Closing due to inactivity

lightninglabs-deploy avatar Jul 28 '23 14:07 lightninglabs-deploy

Closing due to inactivity

lightninglabs-deploy avatar Jul 28 '23 15:07 lightninglabs-deploy