官术网_书友最值得收藏!

Proof-of-work

This is a method to guarantee that the result of a task was hard to achieve. Why do we want to make processing tasks difficult? To reward those that are best at completing it. In a blockchain, it costs processing power, which is just hardware, energy, and time, to process transactions made by individuals using the network. It is used to generate blocks in a simple process:

  • The miner proposes a new block that contains a hash number made of the header of the most recent block and the nonce counter.
  • Then, the miner compares the hash to the target value which is determined by the mining difficulty.
  • If the hash is of the target difficulty, the user gets rewarded with the solution by getting ETH. If not, the nonce gets incremented until a hash is generated with the desired solution.

Since the miner will be competing with many others, there must be a system to make sure that the block times are consistent, because we want to keep generating blocks with the same periodicity even when new nodes join the mining network. To guarantee similar block times, the mining difficulty was created.

主站蜘蛛池模板: 赤水市| 浮梁县| 上林县| 普兰县| 伊宁县| 喀什市| 武邑县| 泰来县| 肥东县| 永城市| 舟山市| 利津县| 马山县| 纳雍县| 资兴市| 丰城市| 天祝| 巫溪县| 商洛市| 钟山县| 赤峰市| 抚顺县| 宜兰县| 城步| 金坛市| 周口市| 山东省| 仙游县| 乌拉特中旗| 桐城市| 确山县| 罗田县| 乐平市| 南康市| 巴马| 连江县| 扶绥县| 竹山县| 霍州市| 新宁县| 察哈|