consensus mechanism
Thanks to the characteristics of the P2P network, it will be very safe if the same data is saved in the P2P network. For example, save a piece of data in the P2P network: Xiao Ming has a deposit of 2,000 yuan. We stipulate that if more than half of the nodes save this data, then we think that Xiao Ming really has a deposit of 2,000 yuan, otherwise he does not. Therefore, if Xiao Ming wants to modify his balance, he must modify at least half of the nodes to achieve the effect. Imagine that if this network spreads all over the world, he will not be able to do it.
This idea of "most nodes agree" is the consensus mechanism. Of course, there are many kinds of consensus mechanisms, so I won't go into them one by one here.
Let's stick to learning basic knowledge together, and the foundation of world martial arts is always useful. Pay attention to the old cat so he doesn’t get lost! ! !