lnd
lnd copied to clipboard
lnwallet: require fee reserve routing node inc. anchor channels
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, remember to re-request review from reviewers when ready
@cfromknecht, remember to re-request review from reviewers when ready
@cfromknecht, remember to re-request review from reviewers when ready
Closing due to inactivity
Closing due to inactivity
Closing due to inactivity