lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.65k stars 2.07k forks source link

[Feature request] Allow separate minchansize setting for private channels #5107

Open openoms opened 3 years ago

openoms commented 3 years ago

Currently a node operator can only control the minimum channel size accepted together in public and private channels: https://github.com/lightningnetwork/lnd/blob/fa4155c12605be616a35d18c62a9a8087d5b4b32/sample-lnd.conf#L245

The setting is very useful: Small public channels are not desirable for a routing node since they are uneconomical (large onchain cost vs usefulness) and getting unbalanced quickly causing payment failures.

There should be a separate setting to allow minimal sized private channels (alongside the different requirement for public ones) to allow mobile wallets and other small private nodes to choose freely.

This would allow for more decentralization without affecting path finding and the payment success rate.

Roasbeef commented 3 years ago

FWIW the enterprising node operator can implement something dynamic like this today using the existing channel acceptor APIs.