Reader small image

You're reading from  Foundations of Blockchain

Product typeBook
Published inJan 2019
PublisherPackt
ISBN-139781789139396
Edition1st Edition
Concepts
Right arrow
Author (1)
Koshik Raj
Koshik Raj
author image
Koshik Raj

Koshik Raj is an information security enthusiast who holds a master's degree in computer science and information security. He has a background of working with RSA, a network security company. He has also worked as a senior developer in CoWrks, Bengaluru. Koshik has been studying blockchain technology since he was introduced to Bitcoin while pursuing his master's. He is currently advising an educational start-up looking to implement blockchain technology in the education space. He is also setting up a blockchain incubation center for students and researchers in Bengaluru to aid mentorship and networking, and even the launching and marketing of their ideas.
Read more about Koshik Raj

Right arrow

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 page is locked
Previous PageNext Page
You have been reading a chapter from
Foundations of Blockchain
Published in: Jan 2019Publisher: PacktISBN-13: 9781789139396

Author (1)

author image
Koshik Raj

Koshik Raj is an information security enthusiast who holds a master's degree in computer science and information security. He has a background of working with RSA, a network security company. He has also worked as a senior developer in CoWrks, Bengaluru. Koshik has been studying blockchain technology since he was introduced to Bitcoin while pursuing his master's. He is currently advising an educational start-up looking to implement blockchain technology in the education space. He is also setting up a blockchain incubation center for students and researchers in Bengaluru to aid mentorship and networking, and even the launching and marketing of their ideas.
Read more about Koshik Raj