commit 11579154ecc1a7004dfb521321454bcc868d305d
parent 24a0ae9cae40d455a1785ead730af2b462fe9f1d
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Thu, 4 Feb 2021 23:42:08 +1100
add lightning documentation
Diffstat:
3 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/docs/lightning.md b/docs/lightning.md
@@ -0,0 +1,23 @@
+# Lightning Support
+Recently we have added support for Lightning Network Daemon, with plans to extend support to clightning in the near future.
+
+You will need to install the additional dependency lndgrpc:
+```
+pip3 install lndgrpc==0.2.0
+```
+
+To use lightning, you need to change your `pay_method` in `config.py`, and set your lightning directory on your node.
+```python
+pay_method = "lnd"
+lnd_dir = "~/.lnd/"
+lnd_rpcport = "10009"
+```
+
+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 BTCPyment 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;height:460px;border:none;overflow:hidden;" scrolling="no"></iframe>
+```
diff --git a/requirements.txt b/requirements.txt
@@ -7,4 +7,3 @@ requests==2.25.0
gunicorn==20.0.4
eventlet==0.30.0
Pillow==8.0.1
-lndgrpc==0.2.0
diff --git a/templates/donate.html b/templates/donate.html
@@ -40,7 +40,7 @@
/* height:auto; */
height: 275px;
width:220px;
-
+
position: absolute;
left: 50%;
top: 50%;
@@ -101,7 +101,7 @@
<input style="display:inline" size="4" type="float" name="amount" id="amount" placeholder="USD">
</h2>
<br>
- <input style="width:100%" type="submit" value="Donate" onclick="hideAmountShowPayment()">
+ <input style="width:100%" type="submit" value="Donate">
</form>
</center>
</div>