Search icon CANCEL
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
Foundations of Blockchain

You're reading from  Foundations of Blockchain

Product type Book
Published in Jan 2019
Publisher Packt
ISBN-13 9781789139396
Pages 372 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Koshik Raj Koshik Raj
Profile icon Koshik Raj

Table of Contents (14) Chapters

Preface 1. Introduction 2. A Bit of Cryptography 3. Cryptography in Blockchain 4. Networking in Blockchain 5. Cryptocurrency 6. Diving into Blockchain - Proof of Existence 7. Diving into Blockchain - Proof of Ownership 8. Blockchain Projects 9. Blockchain Optimizations and Enhancements 10. Blockchain Security 11. When Shouldn't We Use Blockchain? 12. Blockchain Use Cases 13. Other Books You May Enjoy

Block synchronization

Each node that joins the blockchain network needs to update its local copy of the blockchain to synchronize its state with the global state of the rest of the network. This is achieved by block synchronization. A node that needs to update its blockchain sends a message consisting of blockchain height information. Any peer that has a longer blockchain sends an inventory consisting of metadata about the fixed number of blocks that needs to be added to the host node. Now the node makes a request to all its peers to fetch individual blocks by referring to the inventory it received. The node should make sure not to flood the network with block requests by maintaining a cap on the number of block requests it sends.

Block synchronization is a long process for a newly-joined node. However, once all the blocks are up to date, it can verify the information in the block...

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 €14.99/month. Cancel anytime}