-
Notifications
You must be signed in to change notification settings - Fork 5.9k
EIP-2384 - Difficulty Bomb Delay #2384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
10a92d9
Create eip-2019.md
econoar 8046f26
update
econoar 2163016
update EIP number to 2384
econoar a97193d
update eip-2384
econoar f51376a
update eip-2384.md
econoar fbe05c8
update eip-2384.md
econoar 02505ba
update eip-2384.md
econoar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| --- | ||
| eip: 2384 | ||
| title: Difficulty Bomb Delay | ||
| author: Eric Conner (@econoar) | ||
| type: Standards Track | ||
econoar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| category: Core | ||
| status: Draft | ||
| created: 2019-11-20 | ||
| --- | ||
|
|
||
| ## Simple Summary | ||
| 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). | ||
|
|
||
| ## Abstract | ||
| Starting with `???_FORK_BLKNUM` the client will calculate the difficulty based on a fake block number suggesting the client that the difficulty bomb is adjusting around 9 million blocks later than previously specified with the Homestead fork. | ||
econoar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Motivation | ||
| The difficulty bomb has been activated and block times are on the rise from 13.1s to 14.4s. This will start to accelerate soon and we will see 20s block times in December 2019 and 30s block times around February 2020. This will slowly start to make 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. | ||
econoar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Specification | ||
| #### 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 >= ???_FORK_BLKNUM else block.number | ||
|
|
||
| ## Rationale | ||
| 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. | ||
|
|
||
| ## Backwards Compatibility | ||
| 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 | ||
| Test cases shall be created once the specification is to be accepted by the developers or implemented by the clients. | ||
|
|
||
| ## Implementation | ||
| The implementation in it's logic does not differ from [EIP-649](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-649.md) or [EIP-1234](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1234.md); an implementation for Parity-Ethereum is available in [parity-ethereum#9187](https://github.com/paritytech/parity-ethereum/pull/9187). | ||
econoar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Copyright | ||
| Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.