lightningnetwork / lnd

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

Automatic dynamic channel provisioning and maintenance #183

Closed Roasbeef closed 7 years ago

Roasbeef commented 7 years ago

Currently all channel creation is a manual process that must be executed by users either on the command line or directly through a native program which drives the RPC interface. An alternative op-tin mode would be created wherein lnd examines the known channel graph from it's PoV, and using a set of heuristics opens up a series of channels that are deemed to be locally advantageous for the driving node and also possibly channels that tend the global channel graph to a more optimal state.

This mode should be added as new command line parameter, and governed by a set of policies set by the user. At a glance, two such possible policies come to mind:

  1. The user states that N% of their available funds should be allocated towards channels at all times.
  2. The users states that K channels funded with at-least P satoshis should remain funded at all times.

In order to complete this issue a new sub-system should be added to the daemon which automatically establishes channels in accordance with the policies defined above using heuristics guided by preferential attachment.

Steps To Completion

Roasbeef commented 7 years ago

This has been implemented by the autopilot package. Closing.