how to react on wallet lock

This commit is contained in:
rootzoll 2021-08-26 16:21:54 +02:00
parent a0db8ecfe3
commit bf50b3d1f7
2 changed files with 34 additions and 48 deletions

View File

@ -192,8 +192,6 @@ CHOICE=$(dialog --clear \
case $CHOICE in
INFO)
echo "Gathering Information (please wait) ..."
walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
if [ ${walletLocked} -eq 0 ]; then
while :
do
@ -214,11 +212,6 @@ case $CHOICE in
break
fi
done
else
/home/admin/00raspiblitz.sh ${lightning} ${chain}net
exit 0
fi
;;
LND)
/home/admin/99lndMenu.sh

View File

@ -108,8 +108,6 @@ CHOICE=$(dialog --clear \
case $CHOICE in
INFO)
echo "Gathering Information (please wait) ..."
walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
if [ ${walletLocked} -eq 0 ]; then
while :
do
@ -130,11 +128,6 @@ case $CHOICE in
break
fi
done
else
/home/admin/00raspiblitz.sh ${lightning} ${chain}net
exit 0
fi
;;
RTL)
/home/admin/config.scripts/bonus.rtl.sh menu lnd $CHAIN