SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

lightning.md (1653B)


      1 # Lightning Support
      2 We support both Lightning Network Daemon (lnd) and clightning.
      3 An example config for lnd can be found in [/docs/config_lightning.py](/docs/config_lightning.py).
      4 
      5 If installing the python library lndgrpc requirement failed, see this [solution](https://stackoverflow.com/questions/56357794/unable-to-install-grpcio-using-pip-install-grpcio#comment113013007_62500932).
      6 
      7 
      8 ## LND
      9 To connect to a LND node, you need to set `payment_methods = ["lnd", "bitcoind"]` in `config.toml`, and set your lightning directory on your node.
     10 ```toml
     11 [lnd]
     12 host = "127.0.0.1"
     13 lnd_dir = "~/.lnd/"
     14 lnd_rpcport = "10009"
     15 lnd_macaroon = "invoice.macaroon"
     16 ```
     17 
     18 
     19 ## clightning
     20 To use clightning,  you need to set `payment_methods = ["clightning", "bitcoind"]` in `config.toml`, and
     21 ```toml
     22 [clightning]
     23 clightning_rpc_file = "/home/user/.lightning/bitcoin/lightning-rpc"
     24 ```
     25 If remote clightning, make sure `ssh -nNT -L {local_lightning-rpc}:{remote_lightning-rpc} {tunnel_host}` creates a lightning-rpc unix domain socket. (use full paths local: /home/install/satsale/lightning-rpc).
     26 
     27 ## Notes
     28 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.
     29 
     30 Your node will require sufficient liquidity and connection to receive payments.
     31 
     32 You may also need a taller iframe for the longer address:
     33 ```
     34 <iframe src="http://YOUR_SERVER_IP:8000/" style="margin: 0 auto;display:block;width:420px;height:380px;border:none;overflow:hidden;" scrolling="no"></iframe>
     35 ```