fix testnet ölocked detection

This commit is contained in:
rootzoll 2018-12-20 20:19:01 +01:00
parent 544e869e2a
commit b2124b9b3c

View File

@ -167,7 +167,7 @@ while :
fi
# check if locked
locked=$(sudo -u admin lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
locked=$(sudo -u bitcoin lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
if [ "${locked}" -gt 0 ]; then
# special case: LND wallet is locked ---> show unlock info