Understanding the need to synchronize the network 

Let's try to understand why the network needs to be synchronized. We currently have a decentralized blockchain network that consists of five nodes. The data across these nodes is not consistent; data on each node might vary, which would lead to the failure of the purpose of having a blockchain. Let's try to understand this situation with the help of an example. Go to Postman and send a sample transaction, as shown in the following screenshot:

Send this transaction to the node that's hosted on localhost:3001 by clicking on the Send button. This transaction will appear in the pendingTransactions ...

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.