24

Well i am new trying to mine and i did the "C:>geth --rpc" and its still going how will i know when its done? i did all the steps leading to this but my pc just keeps running the

INFO [05-18|23:32:54] Imported new block receipts              count=36   elapsed=56.012ms   number=3277546 hash=01c020…980ee0 ignored=0
INFO [05-18|23:32:56] Imported new state entries               count=41   elapsed=1.918s     processed=8876747 pending=36176

Just keeps going on, How to tell if geth is done syncing?

1
  • How long does it usually take ?
    – KarolDepka
    Aug 10, 2017 at 0:09

3 Answers 3

26

The way I check is:

eth.syncing will show you your block sync info. You are looking for currentBlock.

Example:

./geth console
> eth.syncing

Output:

{ currentBlock: 2629645, highestBlock: 4895563, knownStates: 7631432, pulledStates: 7625973, startingBlock: 12096 }

or

false

If you see output false, you have caught up with the chain.

Also you will start seeing geth outputting chain segment when done with syncing.

Imported new chain segment
2
  • 1
    I hope this is the best answer. If so please can you accept it ;)
    – ServerGuy
    Jan 31, 2018 at 21:44
  • Run geth attach if you want to attach to the already running geth process.
    – CivFan
    May 16, 2022 at 20:49
5

Compare the value in the log file in the field named number with the value of the last block here https://etherscan.io If it equals or near to equal it means that your chain synchronized.

3
  • 1
    im pretty far behind do i close it or let it run and download the ether wallet?
    – Gilbert
    May 19, 2017 at 9:02
  • It takes quite a while to sync, a couple days for some people. You just have to wait Jul 2, 2017 at 7:30
  • Mine is not outputing the "number" field any more, my lines look like this : INFO [07-05|17:13:20] Imported new state entries count=36 flushed=42 elapsed=577.373µs processed=444595 pending=24261 retry=4 duplicate=1040 unexpected=2419
    – kris
    Jul 5, 2017 at 7:13
2

You can use different methods.

(1) Find out what the latest block is from someone who is up to date (or a online block-explorer like etherscan.io / etherchain.org), compare that to where your chain is.

(2) Once you start importing blocks 1 by 1 every ~15sec, instead of in chunks of 20-50, you are probably up to date.

1
  • Oh, so no way to know for sure?
    – Kebman
    Jul 24, 2017 at 2:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.