Fix race condition in generating lndconnect codes for the first time

This commit is contained in:
Taylor Helsper 2019-07-27 12:00:41 -05:00
parent 74cbe0507d
commit 1863f3813b

View File

@ -12,6 +12,12 @@ while [ ! -f $LND_WALLET_FILE ]; do
sleep 1m
done
echo "LND Wallet found!"
echo "Waiting on admin macaroon..."
while [ ! -f $LND_ADMIN_MACAROON_FILE ]; do
sleep 10s
done
echo "Admin macroon found!"
sleep 5s
while true; do
echo "Generating lndconnect QR codes..."