Skip to content

Commit

Permalink
Add EIP-2384 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Dec 16, 2021
1 parent c5ee5f0 commit a2c41a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yellowpaper.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Yellow Paper
- byzantium: c = max(2 if parent has uncles else 1 - floor((timestamp - parent timestamp) / 9), -99)
- This change makes difficulty adjustment proportional to ETH issued & hashpower spent on the block, instead of just proportional to timestamp change, which prevents attack vectors with manipulating uncle rate to game the system
- epsilon = floor(2**(floor(block number / 1e5) - 2))
- muir glacier: instead of block_number use block_number - 9_000_000
- difficulty = max(genesis difficulty, parent difficulty + x * c + epsilon)
- This mechanism enforces a homeostasis in terms of the time between blocks; a smaller period between the last two blocks results in an increase in the difficulty level and thus additional computation required, lengthening the likely next period. Conversely, if the period is too large, the difficulty, and expected time to the next block, is reduced.
- The expected time to find the nonce & mixHash is proportional to the difficulty
Expand Down

0 comments on commit a2c41a5

Please sign in to comment.