mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-07-14 15:13:21 +02:00
detailed info after 120 secs
This commit is contained in:
@ -157,14 +157,17 @@ while :
|
|||||||
l2="---> Starting Up\n"
|
l2="---> Starting Up\n"
|
||||||
l3="Can take longer if device was off."
|
l3="Can take longer if device was off."
|
||||||
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
||||||
|
isLoadingBlockIndex=$(echo "${clienterror}" | grep -c 'Loading block index')
|
||||||
if [ ${isVerifying} -gt 0 ]; then
|
if [ ${isVerifying} -gt 0 ]; then
|
||||||
l2="---> Verifying Blocks\n"
|
l2="---> Verifying Blocks\n"
|
||||||
|
elif [ ${isLoadingBlockIndex} -gt 0 ]; then
|
||||||
|
l2="---> Loading Block Index\n"
|
||||||
else
|
else
|
||||||
# when takes longer display error
|
# when takes longer display error
|
||||||
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
||||||
if [ ${uptimeSeconds} -gt 10 ]; then
|
if [ ${uptimeSeconds} -gt 120 ]; then
|
||||||
l2="---> Error: ${clienterror}\n"
|
l2="---> Error: ${clienterror}\n"
|
||||||
boxwidth=70
|
boxwidth=70
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
dialog --backtitle "RaspiBlitz ${codeVersion} (${localip}) - Welcome Back" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
dialog --backtitle "RaspiBlitz ${codeVersion} (${localip}) - Welcome Back" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
|
@ -103,14 +103,17 @@ waitUntilChainNetworkIsReady()
|
|||||||
clienterror=`cat error.tmp`
|
clienterror=`cat error.tmp`
|
||||||
rm error.tmp
|
rm error.tmp
|
||||||
if [ ${#clienterror} -gt 0 ]; then
|
if [ ${#clienterror} -gt 0 ]; then
|
||||||
|
boxwidth=40
|
||||||
l1="Waiting for ${network}d to get ready.\n"
|
l1="Waiting for ${network}d to get ready.\n"
|
||||||
l2="---> Starting Up\n"
|
l2="---> Starting Up\n"
|
||||||
l3="Can take longer if device was off."
|
l3="Can take longer if device was off."
|
||||||
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
||||||
if [ ${isVerifying} -gt 0 ]; then
|
if [ ${isVerifying} -gt 0 ]; then
|
||||||
l2="---> Verifying Blocks\n"
|
l2="---> Verifying Blocks\n"
|
||||||
|
else
|
||||||
|
l2="---> ${clienterror}\n"
|
||||||
|
boxwidth=70
|
||||||
fi
|
fi
|
||||||
boxwidth=40
|
|
||||||
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
else
|
else
|
||||||
locked=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
locked=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
||||||
|
Reference in New Issue
Block a user