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

  • Mastering Ethereum
  • Merunas Grincalaitis
  • 194字
  • 2021-06-24 15:01:02

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.

主站蜘蛛池模板: 凯里市| 滦南县| 乌拉特中旗| 罗山县| 县级市| 彝良县| 苏尼特右旗| 凌云县| 德江县| 闵行区| 梁河县| 枣强县| 通城县| 敦煌市| 沾益县| 曲松县| 山阳县| 金山区| 盱眙县| 韩城市| 左贡县| 淮南市| 湖州市| 鄂尔多斯市| 姜堰市| 岳阳县| 启东市| 宕昌县| 祁阳县| 虎林市| 广东省| 钟山县| 青海省| 张北县| 含山县| 姜堰市| 高尔夫| 宁安市| 海门市| 红桥区| 商南县|