Skip to content

params: make eip1559 params non-global#25994

Merged
holiman merged 2 commits intoethereum:masterfrom
protolambda:eip1559-non-global
Nov 4, 2022
Merged

params: make eip1559 params non-global#25994
holiman merged 2 commits intoethereum:masterfrom
protolambda:eip1559-non-global

Conversation

@protolambda
Copy link
Copy Markdown
Contributor

This PR changes geth to read the eip1559 params from the chain config instead of the globals.

This way the parameters may be changed by forking the chain config code, without creating a large diff throughout the past and future usages of the parameters.

Like with hardforks and testnets, geth can support different options at the same time, because the parameters are not hardcoded. This PR does not make the parameters configurable with new individual fields however, to follow the pattern where parameters are determined by hardfork/consensus-type. This PR does not introduce any new format or new branching logic.

See #25822 for context.

Copy link
Copy Markdown
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe self-assigned this Oct 27, 2022
Copy link
Copy Markdown
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman holiman added this to the 1.11.0 milestone Nov 4, 2022
@holiman holiman merged commit a51188a into ethereum:master Nov 4, 2022
shekhirin pushed a commit to shekhirin/go-ethereum that referenced this pull request Jun 6, 2023
This PR changes geth to read the eip1559 params from the chain config instead of the globals.

This way the parameters may be changed by forking the chain config code, without creating a large diff throughout the past and future usages of the parameters.

Co-authored-by: Martin Holst Swende <martin@swende.se>
dimpar added a commit to mezo-org/mezod that referenced this pull request Aug 29, 2024
As per ethereum/go-ethereum#25994
- BaseFeeChangeDenominator -> DefaultBaseFeeChangeDenominator
- ElasticityMultiplier -> DefaultElasticityMultiplier
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.

4 participants