Skip to content
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

remove circular dependency in parameter definitions #2768

Merged
merged 1 commit into from
Jul 4, 2020

Conversation

i-norden
Copy link
Contributor

@i-norden i-norden commented Jul 4, 2020

No description provided.

@eip-automerger eip-automerger merged commit 56f4944 into ethereum:master Jul 4, 2020
* `LEGACY_INITIAL_GAS_LIMIT`: `BLOCK_GAS_TARGET - EIP1559_GAS_TARGET`
* `LEGACY_INITIAL_GAS_LIMIT`: `BLOCK_GAS_TARGET / 2`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "bug" here was that BLOCK_GAS_TARGET - EIP1559_GAS_TARGET should have been BLOCK_GAS_TARGET - EIP1559_INITIAL_GAS_TARGET. In theory, by having it that way it would be "easier" to update the EIP with a different initial distribution (e.g., if we wanted to start with 10% of block switched over initially).

EIP1559_INITIAL_GAS_TARGET + LEGACY_INITIAL_GAS_LIMIT * (CURRENT_BLKNUM - INITIAL_FORK_BLKNUM) / MIGRATION_DURATION_IN_BLOCKS
EIP1559_INITIAL_GAS_TARGET + (BLOCK_GAS_TARGET / 2) * (CURRENT_BLKNUM - INITIAL_FORK_BLKNUM) / MIGRATION_DURATION_IN_BLOCKS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above, by spreading out the /2 rather than using variables, if we decide we want to change the initial distribution we have to update more parts of the EIP (more likely to miss/forget something and introduce a bug in the spec). This change isn't incorrect, it just has potential to make the EIP a tad harder to maintain.

tkstanczak pushed a commit to tkstanczak/EIPs that referenced this pull request Nov 7, 2020
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
Arachnid pushed a commit to Arachnid/EIPs that referenced this pull request Mar 6, 2021
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants