mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 19:50:35 +02:00
wait for syncprogress info
This commit is contained in:
@@ -582,6 +582,15 @@ if [ ${isMounted} -eq 0 ]; then
|
||||
# mark provision process done
|
||||
sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile}
|
||||
|
||||
# wait until syncProgress is available (neeed for final dialogs)
|
||||
while [ "${syncProgress}" == "" ]
|
||||
do
|
||||
echo "# Waiting for blockchain sync progress info ..." >> $logFile
|
||||
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
|
||||
sed -i "s/^state=.*/state=waitsync/g" ${infoFile}
|
||||
sleep 2
|
||||
done
|
||||
|
||||
###################################################
|
||||
# WAIT LOOP: AFTER FRESH SETUP, MIGRATION
|
||||
# successfull update & recover can skip this
|
||||
|
@@ -26,14 +26,6 @@ fi
|
||||
############################################
|
||||
# BLOCKCHAIN INFO & OPTIONS
|
||||
|
||||
# wait until syncProgress is available
|
||||
while [ "${syncProgress}" == "" ]
|
||||
do
|
||||
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
|
||||
/home/admin/setup.scripts/eventInfoWait.sh "waitsync" "waitloop" ssh
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# get fresh data
|
||||
syncProgressFull=$(echo "${syncProgress}" | cut -d "." -f1)
|
||||
if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncProgressFull} -lt 75 ]; then
|
||||
|
Reference in New Issue
Block a user