Last active
March 10, 2019 10:49
-
-
Save lukestokes/c69d13b6fc2440d3f41d2d1ea9b911b5 to your computer and use it in GitHub Desktop.
Print out the current block numbers for all nodes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PREFIX="0" | |
START_NUMBER=$(<~/smartcash/start_number.txt) | |
END_NUMBER=$(<~/smartcash/end_number.txt) | |
for (( number=$START_NUMBER; number<=$END_NUMBER; number++ )) | |
do | |
if [ $number -gt 9 ] | |
then | |
PREFIX="" | |
fi | |
display=$(~/smartcash/smart-cli.sh $PREFIX$number getblockcount) | |
echo "SmartNode$PREFIX$number: $display" | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment