Synchronizing the Network

In the previous chapters, we built a network that was made up of five nodes. Every node was aware of all the other nodes in the network, which created a decentralized blockchain network. We now need to create a synchronized network, so that the blockchain on every node is the same and data is consistent throughout. We can't afford to have different versions of the blockchains running on different nodes, because this would totally destroy the purpose of having a blockchain. There should only be one version of the blockchain that is consistent across every node. Therefore, in this chapter, let's synchronize the network that we built in Chapter 4, Creating a Decentralized Blockchain Network. We'll do this by broadcasting ...

Get Learn Blockchain Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.