isWaitingBlockchain=$( sudo -u bitcoin tail -n 2 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "Waiting for chain backend to finish sync" -c )
if[${isWaitingBlockchain} -gt 0];then
infoStr=" Waiting for final Blockchain Sync\nplease wait - this can take some time\nssh admin@${localip}\nPassword A"
heigh=7
infoStr=" Waiting for final Blockchain Sync\n Progress: ${progress}\n please wait - this can take some time\n ssh admin@${localip}\n Password A"
if["$USER"="admin"];then
heigh=5
infoStr=$(echo" Waiting for final Blockchain Sync\nplease wait - this can take some time\nIts OK to close terminal and ssh back in later.")
heigh=6
infoStr=$(echo" Waiting for final Blockchain Sync\n Progress: ${progress}\n please wait - this can take some time\nIts OK to close terminal and ssh back in later.")
fi
else
infoStr=$(echo" Lightning Rescanning Blockchain ${percent}%\n please wait - this can take some time\n ssh admin@${localip}\n Password A")