getumbrel / umbrel

A beautiful home server OS for self-hosting with an app store. Buy a pre-built Umbrel Home with umbrelOS, or install on a Raspberry Pi or any x86 system.
https://umbrel.com
Other
6.87k stars 508 forks source link

Make Lightning App not dependent on local Bitcoind (Neutriuno mode) #1839

Open ffrediani opened 4 weeks ago

ffrediani commented 4 weeks ago

Currently in order to install Lightning on Umbrel it is necessary to install Bitcoin Node first and wait for it to sync, but there may already be a Bitcoin Code available and synced nearby or the user may just prefer to use a public node.

Therefore making Lightning App installable without depending on Bitcoin Core can be useful for such cases and improve user experience.

In the case it detects there is no Bitcoin Node installed locally it can warn the user that without connecting to a Bitcoin Node it is not possible to operate and then have options on Lightning App configuration that allows the user to configure Neutrino mode (bitcoin.node=neutrino), connect to an external node (neutrino.addpeer=<your Bitcoin node's IP address>:<p2p port>) and adjust the variables blockfilterindex=1 and peerblockfilters=1

Ref: https://docs.lightning.engineering/lightning-network-tools/lnd/enable-neutrino-mode-in-bitcoin-core