added parameter for testnet

This commit is contained in:
rootzoll 2018-12-12 14:38:03 +01:00
parent e57c2fe45a
commit 647563489f

View File

@ -158,7 +158,7 @@ while :
fi
# if LND is syncing or scanning
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${network}net getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
if [ ${lndSynced} -eq 0 ]; then
/home/admin/80scanLND.sh
sleep 20