commit dd60fe387b29ddcfd5f0b94b3b1e4f0795a4e530
parent 46f8abbe994a4bf57a2f0b060b5568c2ad1b771a
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Sat, 30 Jan 2021 15:32:17 +1100
fix conn failure on startup
Diffstat:
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/pay/lnd.py b/pay/lnd.py
@@ -30,6 +30,7 @@ class lnd(invoice):
for i in range(config.connection_attempts):
try:
print("Attempting to initialise lnd rpc client...")
+ time.sleep(3)
self.lnd = LNDClient(
"{}:{}".format(config.host, config.rpcport),
macaroon_filepath="admin.macaroon",
diff --git a/templates/donate.html b/templates/donate.html
@@ -94,22 +94,11 @@
<input style="display:inline" size="4" type="float" name="amount" id="amount" placeholder="USD">
</h2>
<br>
- <input style="width:100%" type="submit" value="Pay" onclick="hideAmountShowPayment()">
+ <input style="width:100%" type="submit" value="Donate" onclick="hideAmountShowPayment()">
</form>
</center>
</div>
- <!-- <div id="paymentDetails" style="display:none; padding: 0;">
- <p style="padding:0;">Send: <b><span id="amount"></span></b> BTC</p>
- <p style="padding:0;">To: </p><b><p id="address" onclick="copyTextFromElement('address')"></p></b>
- <p style="padding:0;"><span id="status"></span></p>
- <p id="timerContainer" style="padding:0;"><span id="timer"></span> seconds remaining.</p>
- </div>
-
- <div id="information" style="text-align: right; padding: 0;">
- <small><a id="about" href="https://github.com/nickfarrow/BTCPyment" target="_blank">BTCPyment</a></small>
- </div> -->
-
<div id="paybutton"></div>
</div>
</body>