Mining: the birth of a new block

in block •  4 years ago 

The correct block hash needs to start with "enough zeros". For example, if the next block of Hash requires 3 zeros, the block hash calculated by the miner must be in the form of "000...". The more zeros at the beginning, the more difficult the calculation and the greater the amount of calculation. The Nonce mentioned above records how many times this block has tried to calculate the hash before it succeeds. For example, the current block generally requires 900 million calculations to be able to mine. Of course, it is possible to succeed in tens of thousands of attempts. Mining requires a lot of calculations, and is also time-consuming and power-consuming. The process of calculating this correct Hash is called "proof-of-work". Because of the characteristics of Hash, the characteristic of "Proof of Work" is that it is difficult to calculate the correct result, but it is easy to verify the correct result. Many people call this process "difficulty solving", but calculating the correct Hash does not require mental investment, it just requires the computer to keep calculating the new Hash until the guess is correct.

Once a miner has dug the next block, the miner will inform the entire network (broadcast) that the entire network will recognize and synchronize the newly generated block, and other miners who are calculating this block have to give up half of the calculation. , Plunge into the calculation of the next block.

If it happens that several miners have dug the next block at the same time, other miners will save the new blocks until a certain block branch is longer than other block branches. At this time, the longest branch is recognized as official Blockchain.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

thank you! great description.