mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
fix presync progress
This commit is contained in:
@@ -83,8 +83,8 @@ while :
|
|||||||
|
|
||||||
# when in presync - get more info on progress
|
# when in presync - get more info on progress
|
||||||
elif [ "${state}" = "presync" ]; then
|
elif [ "${state}" = "presync" ]; then
|
||||||
# get blockchain sync progress
|
# sudo -u root bitcoin-cli --conf=/home/admin/assets/bitcoin.conf getblockchaininfo
|
||||||
blockchaininfo="$(sudo -u root ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>/dev/null)"
|
blockchaininfo="$(sudo -u root ${network}-cli --conf=/home/admin/assets/${network}.conf getblockchaininfo 2>/dev/null)"
|
||||||
message="starting"
|
message="starting"
|
||||||
if [ ${#blockchaininfo} -gt 0 ]; then
|
if [ ${#blockchaininfo} -gt 0 ]; then
|
||||||
message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')"
|
message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')"
|
||||||
|
Reference in New Issue
Block a user