EIP-2384: Muir Glacier Difficulty Bomb Delay
作者 | Eric Conner |
---|---|
讨论-To | https://ethereum-magicians.org/t/eip-2384-difficulty-bomb-delay |
状态 | Final |
类型 | Standards Track |
分类 | Core |
创建日期 | 2019-11-20 |
英文版 | https://eips.ethereum.org/EIPS/eip-2384 |
简述
The average block times are increasing due to the difficulty bomb (also known as the “ice age”) and slowly accelerating. This EIP proposes to delay the difficulty bomb for another 4,000,000 blocks (~611 days).
摘要
Starting with MUIR_GLACIER_FORK_BLKNUM
the client will calculate the difficulty based on a fake block number suggesting to the client that the difficulty bomb is adjusting 9 million blocks later than the Homestead fork, which is also 7 million blocks later than the Byzantium fork and 4 million blocks later than the Constantinople fork.
动机
The difficulty bomb started to become noticeable again on October 5th 2019 at block 8,600,000. Block times have been around 13.1s on average and now as of block 8,900,000 are around 14.3s. This will start to accelerate exponentially every 100,000 blocks. Estimating the added impact from the difficulty bomb on block times shows that we will see 20s block times near the end of December 2019 and 30s+ block times starting February 2020. This will start making the chain bloated and more costly to use. It’s best to delay the difficulty bomb again to around the time of expected launch of the Eth2 finality gadget.
规范
Relax Difficulty with Fake Block Number
For the purposes of calc_difficulty
, simply replace the use of block.number
, as used in the exponential ice age component, with the formula:
fake_block_number = max(0, block.number - 9_000_000) if block.number >= MUIR_GLACIER_FORK_BLKNUM else block.number
基本原理
This will delay the ice age by 52 million seconds (approximately 611 days), so the chain would be back at 20 second block times around July 2021. It’s important to note this pushes the ice age 4,000,000 blocks from ~block 8,800,000 NOT from when this EIP is activated in a fork.
向后兼容性
This EIP is not forward compatible and introduces backwards incompatibilities in the difficulty calculation. Therefore, it should be included in a scheduled hardfork at a certain block number. It’s suggested to include this EIP shortly after the Istanbul fork.
测试用例
Test cases shall be created once the specification is to be accepted by the developers or implemented by the clients.
实现
The implementation in it’s logic does not differ from EIP-649 or EIP-1234; an implementation for Parity-Ethereum is available in parity-ethereum#9187.
版权声明
Copyright and related rights waived via CC0.
参考文献
Please cite this document as:
Eric Conner, "EIP-2384: Muir Glacier Difficulty Bomb Delay," Ethereum Improvement Proposals, no. 2384, November 2019. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-2384.