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

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.

主站蜘蛛池模板: 大田县| 临湘市| 松潘县| 南京市| 金阳县| 松原市| 新密市| 陆丰市| 大方县| 瓮安县| 中江县| 永福县| 玉门市| 扎囊县| 娱乐| 化隆| 阿拉善右旗| 邵东县| 伊宁县| 安吉县| 德化县| 镇赉县| 西充县| 淅川县| 大连市| 建水县| 合川市| 禹城市| 若羌县| 太仓市| 临夏县| 十堰市| 行唐县| 涞水县| 营山县| 宝清县| 冷水江市| 滦平县| 常宁市| 岑巩县| 新宾|