Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Truffle Quick Start Guide

You're reading from  Truffle Quick Start Guide

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781789132540
Pages 170 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Nikhil Bhaskar Nikhil Bhaskar
Profile icon Nikhil Bhaskar

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 $15.99/month. Cancel anytime}