Skip to content

Instantly share code, notes, and snippets.

@openainext
Forked from lyricalpolymath/gethSyncingProgress.js
Created February 3, 2018 05:24
Show Gist options
  • Save openainext/86812d5057e575dda7c36a71d7278e03 to your computer and use it in GitHub Desktop.
Save openainext/86812d5057e575dda7c36a71d7278e03 to your computer and use it in GitHub Desktop.
ETHERUM BLOCKCHAIN SYNCING PROGRESS (Geth) - simple - give a quick feedback on the progress of the blockchain launched though the geth command line and not the ethereum wallet
//with geth running -copy and paste this code to have a simple feedback of the blockchain syncing progress
geth --exec 'var s = eth.syncing; console.log("\n------------ GETH SYNCING PROGRESS\nprogress: " + (s.currentBlock/s.highestBlock*100)+ " %\nblocks left to parse: "+ (s.highestBlock-s.currentBlock) + "\ncurrent Block: " + s.currentBlock + " of " + s.highestBlock)' attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment