Browse Source

fix presync progress

v1.2
Christian Rotzoll 6 years ago
parent
commit
d4d633552f
  1. 4
      home.admin/00infoLCD.sh

4
home.admin/00infoLCD.sh

@ -83,8 +83,8 @@ while :
# when in presync - get more info on progress
elif [ "${state}" = "presync" ]; then
# get blockchain sync progress
blockchaininfo="$(sudo -u root ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>/dev/null)"
# 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)"
message="starting"
if [ ${#blockchaininfo} -gt 0 ]; then
message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')"

Loading…
Cancel
Save