Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.46 KB

lightning.md

File metadata and controls

34 lines (25 loc) · 1.46 KB

Lightning Support

We support both Lightning Network Daemon (lnd) and clightning. An example config for lnd can be found in /docs/config_lightning.py.

If installing the python library lndgrpc requirement failed, see this solution.

LND

To use lightning, you need to change your pay_method in config.py, and set your lightning directory on your node.

pay_method = "lnd"
lnd_dir = "~/.lnd/"
lnd_rpcport = "10009"

clightning

To use lightning, you need to change your pay_method in config.py, and set your lightning directory on your node.

pay_method = "clightning"
# If remote clightning, make sure `ssh -nNT -L lightning-rpc:{clightning_rpc_file} {tunnel_host}`
clightning_rpc_file = "/home/user/.lightning/lightning-rpc"

Notes

Your lnd directory is used to find your .tls and .macaroon files that are required to talk to your lightning node. They are copied over SSH into your SatSale folder. If this copy fails, perhaps copy them manually and they will be identified on start up.

Your node will require sufficient liquidity and connection to receive payments.

You may also need a taller iframe for the longer address:

<iframe src="http://YOUR_SERVER_IP:8000/" style="margin: 0 auto;display:block;width:420px;height:380px;border:none;overflow:hidden;" scrolling="no"></iframe>