add default message on presync

This commit is contained in:
rootzoll
2018-12-11 20:30:13 +01:00
parent 7d583ed5d1
commit fb9b2a3550

View File

@@ -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)