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

Holocene 1559 params for block building #227

Merged

Conversation

mininny
Copy link
Member

@mininny mininny commented Oct 14, 2024

This PR includes changes required to implement the configurable EIP-1559 parameters that are part of the Holocene upgrade.

Prerequisite erigon-interfaces PR: testinprod-io/erigon-interfaces#21
Spec: ethereum-optimism/specs#340
Mirrored from op-geth PR: ethereum-optimism/op-geth#398

@mininny mininny force-pushed the feature/mininny/holocene-1559-params branch from 77950b7 to 9cf8675 Compare October 14, 2024 20:00
@mininny mininny changed the base branch from op-erigon to feature/mininny/holocene-hardfork October 14, 2024 20:09
@mininny mininny marked this pull request as ready for review October 14, 2024 20:13
@@ -101,18 +102,55 @@ func (f eip1559Calculator) CurrentFees(chainConfig *chain.Config, db kv.Getter)
return baseFee, blobFee, minBlobGasPrice, currentHeader.GasLimit, nil
}

// CalcBaseFee calculates the basefee of the header.
// DecodeHolocene1599Params extracts the Holcene 1599 parameters from the encoded form:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// DecodeHolocene1599Params extracts the Holcene 1599 parameters from the encoded form:
// DecodeHolocene1559Params extracts the Holcene 1559 parameters from the encoded form:

We need to fix 1599 to 1559 throughout the code.

Copy link
Member Author

Choose a reason for hiding this comment

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

I fixed it throughout the whole code! :)

turbo/execution/eth1/block_building.go Outdated Show resolved Hide resolved
turbo/engineapi/engine_server.go Outdated Show resolved Hide resolved
@mininny mininny force-pushed the feature/mininny/holocene-1559-params branch from 099c714 to 7a151bb Compare October 15, 2024 16:06
@mininny mininny changed the title Holocene 1559 params Holocene 1559 params for block building Oct 15, 2024
@mininny mininny merged commit 8e48c72 into feature/mininny/holocene-hardfork Oct 31, 2024
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.

2 participants