上QQ阅读APP看书,第一时间看更新
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.