Skip to content

Instantly share code, notes, and snippets.

@bensig
Last active October 30, 2021 09:51
Show Gist options
  • Select an option

  • Save bensig/7aab54003c0f2741597b7cdbfff2be55 to your computer and use it in GitHub Desktop.

Select an option

Save bensig/7aab54003c0f2741597b7cdbfff2be55 to your computer and use it in GitHub Desktop.
simple script to check the bitcoin sync level of your btcd node
# simple script to check the bitcoin sync level of your btcd node
echo `btcctl -s localhost:8337 getbestblock|jq -r -c .height`/`curl -s https://blockchain.info/q/getblockcount 2>/dev/null`*100|bc -l
@bensig
Copy link
Copy Markdown
Author

bensig commented Oct 30, 2021

Updated due to smartbit.com.au going offline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment