Remove LND Connect Remote (adding VPN later)

This commit is contained in:
Taylor Helsper 2019-07-13 18:56:42 -05:00
parent 12408134a4
commit 19624cd3a2
3 changed files with 16 additions and 20 deletions

View File

@ -25,7 +25,13 @@ done
echo "QuickSync Complete! Enabling Uploading."
while true; do
if [ -f $QUICKSYNC_BANDWIDTH_FILE ]; then
if [ ! -f "/mnt/hdd/mynode/quicksync/.quicksync_complete" ]; then
echo "QuickSync not complete, stopping upload"
transmission-remote -u 0
elif [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; then
echo "Bitcoin not synced, stopping upload"
transmission-remote -u 0
elif [ -f $QUICKSYNC_BANDWIDTH_FILE ]; then
RATE=$(cat $QUICKSYNC_BANDWIDTH_FILE)
echo "Setting upload rate to $RATE kbps"
transmission-remote -u $RATE
@ -33,7 +39,7 @@ while true; do
echo "Setting upload rate to unlimited"
transmission-remote -U
fi
sleep 1d
sleep 1h
done
# We should not exit

View File

@ -18,19 +18,19 @@ while true; do
rm -rf /tmp/mynode_lndconnect/*
# Generate QR Codes
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet
cp -f lndconnect-qr.png lndconnect_remote_grpc.png
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet
#cp -f lndconnect-qr.png lndconnect_remote_grpc.png
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet --localip
cp -f lndconnect-qr.png lndconnect_local_grpc.png
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet -p 10080
cp -f lndconnect-qr.png lndconnect_remote_rest.png
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet -p 10080
#cp -f lndconnect-qr.png lndconnect_remote_rest.png
lndconnect --lnddir=/mnt/hdd/mynode/lnd -o --bitcoin.mainnet --localip -p 10080
cp -f lndconnect-qr.png lndconnect_local_rest.png
# Generate Text Files
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet > lndconnect_remote_grpc.txt
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet > lndconnect_remote_grpc.txt
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet --localip > lndconnect_local_grpc.txt
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet -p 10080 > lndconnect_remote_rest.txt
#lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet -p 10080 > lndconnect_remote_rest.txt
lndconnect --lnddir=/mnt/hdd/mynode/lnd -j --bitcoin.mainnet --localip -p 10080 > lndconnect_local_rest.txt
echo "Done! Waiting until LND changes, then regen lndconnect codes!"

View File

@ -30,10 +30,8 @@
<div class="main_header">LND Connect</div>
<div id="lndconnect_tabs" style="width: 800px;">
<ul>
<li><a href="#tabs-1">Local gRPC</a></li>
<li><a href="#tabs-2">Local REST</a></li>
<li><a href="#tabs-3">Remote gRPC</a></li>
<li><a href="#tabs-4">Remote REST</a></li>
<li><a href="#tabs-1">gRPC</a></li>
<li><a href="#tabs-2">REST</a></li>
</ul>
<div id="tabs-1">
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_local_grpc_img}}"/>
@ -43,14 +41,6 @@
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_local_rest_img}}"/>
<p>{{ lndconnect_local_rest_text }}</p>
</div>
<div id="tabs-3">
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_remote_grpc_img}}"/>
<p>{{ lndconnect_remote_grpc_text }}</p>
</div>
<div id="tabs-4">
<img class="lndconnect_qr_code" src="data:image/png;base64,{{lndconnect_remote_rest_img}}"/>
<p>{{ lndconnect_remote_rest_text }}</p>
</div>
</div>