mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 22:59:19 +02:00
show bitcoin presync progress
This commit is contained in:
parent
d4d633552f
commit
0213fb09bb
@ -83,8 +83,7 @@ while :
|
||||
|
||||
# when in presync - get more info on progress
|
||||
elif [ "${state}" = "presync" ]; then
|
||||
# sudo -u root bitcoin-cli --conf=/home/admin/assets/bitcoin.conf getblockchaininfo
|
||||
blockchaininfo="$(sudo -u root ${network}-cli --conf=/home/admin/assets/${network}.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
|
||||
message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')"
|
||||
|
Loading…
x
Reference in New Issue
Block a user