2

When syncing with geth, how do you know how many blocks are left to be fully in sync?

1

1 Answer 1

3

From the console, you can check the syncing info with:

eth.syncing

Which will return something like this:

{
  currentBlock: 4036471,
  highestBlock: 4200826,
  knownStates: 0,
  pulledStates: 0,
  startingBlock: 4028732
}

Pro tip: try the following to get the number without having to do any maths:

eth.syncing.highestBlock - eth.syncing.currentBlock

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