- Foundations of Blockchain
- Koshik Raj
- 77字
- 2021-07-02 14:17:22
Selecting the longest chain
Finding a global truth in the decentralized network is a strenuous task, and a variety of consensus algorithms help to achieve it. The proof-of-work algorithm, discussed in the previous chapter, is the first and one of the best solutions. It ensures that the longest chain created has the most work contributed to it by legitimate nodes in the network. No consensus algorithm will be included in this application for the sake of simplicity.