mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 21:28:54 +02:00
add default message on presync
This commit is contained in:
@@ -80,6 +80,7 @@ while :
|
||||
if [ "${state}" = "presync" ]; then
|
||||
# get blockchain sync progress
|
||||
blockchaininfo="$(sudo -u root bitcoin-cli -conf=/home/admin/assets/bitcoin.conf getblockchaininfo 2>/dev/null)"
|
||||
message="starting"
|
||||
if [ ${#blockchaininfo} -gt 0 ]; then
|
||||
message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')"
|
||||
message=$(echo "${message}*100" | bc)
|
||||
|
Reference in New Issue
Block a user