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