mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 00:18:10 +02:00
Merge pull request #948 from frennkie/update-txindex-info
update txindex status line
This commit is contained in:
commit
62eb32ce87
@ -7,7 +7,7 @@
|
||||
# command info
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
echo "small config script to switch BTC-RPC-explorer on or off"
|
||||
echo "bonus.btc-rcp-explorer.sh [status|on|off]"
|
||||
echo "bonus.btc-rpc-explorer.sh [status|on|off]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -214,4 +214,4 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||
fi
|
||||
|
||||
echo "FAIL - Unknown Parameter $1"
|
||||
exit 1
|
||||
exit 1
|
||||
|
@ -49,7 +49,8 @@ if [ "$1" = "status" ]; then
|
||||
else
|
||||
echo "isIndexed=0"
|
||||
if [ ${#indexedToBlock} -gt 0 ]; then
|
||||
indexInfo="Indexing ${indexedToBlock}/${blockchainHeight} (please wait)"
|
||||
progressPercent=$(printf %.2f $(echo "${indexedToBlock}/${blockchainHeight}*100" | bc -l))
|
||||
indexInfo="Indexing is at ${progressPercent}% (please wait)"
|
||||
else
|
||||
indexInfo="Indexing is running (please wait)"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user