ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.87k stars 907 forks source link

Interop: LND <=> CLN uses DustLimit greater than our ChanReserve #6763

Open ziggie1984 opened 1 year ago

ziggie1984 commented 1 year ago

A noderunner running LND opened a 50k sats StaticRemote Channel to a CLN node. LND uses the unknown witness size as a dustlimit (354 sats) CLN however uses 546 sats as a dust limit. Now CLN will bump its dustlimit for its Commitment Tx during the OpenChannel process but keeps the ChanReserve they require for us at 1% hence 500sats (below the dust-limit). When the ACCEPT_CHANNEL msg reaches the lnd node, it is rejected because we do not allow a ChanReserve being below the dustlimit. This leads to a situations where the min_chan_size between LND<=>CLN Channels is 54600sats.

Expected behaviour: CLN increases the ChanReserve it requires for the peer to be greater (equal) than the DustLimit of its own CommitmentTx. Now even channels below the size of 54600sats are possible.

svpi11 commented 1 year ago

I experienced this issue