Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Truffle Quick Start Guide

You're reading from   Truffle Quick Start Guide Learn the fundamentals of Ethereum development

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789132540
Length 170 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Nikhil Bhaskar Nikhil Bhaskar
Author Profile Icon Nikhil Bhaskar
Nikhil Bhaskar
Arrow right icon
View More author details
Toc

Sync issues in Geth

When you attempt to sync to Geth, you will notice that quite often, Geth simply takes too long to sync. To combat this, many developers turn to Parity. It is simply a faster sync.

Another common mistake you will make is knowing for a fact that your account has a positive balance, but when you go to check the balance, you see that it has zero balance.

The reason for this is that you are probably not synced.

To ensure you are synced, while a Geth or Parity node is running, you can run the following code inside a JavaScript console:

 web3.eth.syncing

You may see a JavaScript object returned, such as this:

{
currentBlock: 236124,
highestBlock: 2947915,
knownStates: 1320304,
pulledStates: 1320304,
startingBlock: 236111
}

If you see this, it means you are still currently syncing on your Ethereum client. You can see the highest block, which is 2947915, and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime