mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-03-01 09:00:15 +01:00
parent
72b0a21e35
commit
0012aea921
1 changed files with 3 additions and 1 deletions
|
@ -159,9 +159,11 @@ if [ "$2" = "info" ]; then
|
||||||
btc_sync_percentage=$(echo ${btc_sync_progress} | awk '{printf( "%.2f%%", 100 * $1)}')
|
btc_sync_percentage=$(echo ${btc_sync_progress} | awk '{printf( "%.2f%%", 100 * $1)}')
|
||||||
if [ "${btc_blocks_headers}" != "" ] && [ "${btc_blocks_headers}" == "${btc_blocks_verified}" ]; then
|
if [ "${btc_blocks_headers}" != "" ] && [ "${btc_blocks_headers}" == "${btc_blocks_verified}" ]; then
|
||||||
btc_sync_percentage="100.00"
|
btc_sync_percentage="100.00"
|
||||||
|
elif [ "${btc_blocks_headers}" != "" ] && [ "${btc_blocks_behind}" != "" ] && [ ${btc_blocks_behind} -lt 50 ]; then
|
||||||
|
# #3620 prevent that on catching the last 50 blocks its already 100.00%
|
||||||
|
btc_sync_percentage="99.99"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# determine if synced (tolerate falling 1 block behind)
|
# determine if synced (tolerate falling 1 block behind)
|
||||||
# and be sure that initial blockdownload is done
|
# and be sure that initial blockdownload is done
|
||||||
btc_synced=0
|
btc_synced=0
|
||||||
|
|
Loading…
Add table
Reference in a new issue