What is the consensus algorithm ?

When a blockchain is built, it is running across hundreds or thousands of nodes, and every transaction and every block that's being created is broadcast to the entire blockchain network. There's a possibility that during these broadcasts a hiccup could occur, or maybe a certain node doesn't receive a piece of information or a transaction that took place.

There could even be a bad actor inside of the blockchain network, who is sending out false information or creating fraudulent transactions on their copy of a blockchain, and trying to broadcast them to the whole network to convince everybody that they are legitimate transactions. So, how do we solve this problem so that there are only legitimate blocks in ...

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.