Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Initial block synchronization

When a new node joins a network, it connects to one of the available peers in the network; it then tries to exchange its block information with the peer, and updates the local blockchain, if required.

Figure 4.4: Initial block synchronization

The node sends a chain length or last block query message after connecting to the peer. Requesting the chain length is equivalent to requesting the last block to identify its index. If the received block cannot be appended to the local blockchain due the hash mismatch, then the node sends a message to its peer asking it to send all the blocks. The node can also broadcast ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content