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

base_fee_per_gas to uint256 #2661

Merged
merged 1 commit into from
Oct 12, 2021
Merged

base_fee_per_gas to uint256 #2661

merged 1 commit into from
Oct 12, 2021

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Oct 11, 2021

Based on some conversations on discord, we realized that the current little-endian 32-byte encoding of base_fee_per_gas does not make too much sense.

In practice, CL needs to convert this representation to an integer string for the engine API engine_executePayload. Thus CL clients need to at least be able to parse/convert uint256 values regardless of whether we create the requirement to perform arithmetic on such big integer values.

Note, all clients had to perform these types of conversions for the recent interop so they already can anyway. Plus this weird conversion gave some of them minor issues when getting up and running.

(thanks @potuz for bringing this back up and sparking the simplifying change)

@protolambda
Copy link
Collaborator

Copy link
Collaborator

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

LGTM

@djrtwo djrtwo merged commit da24034 into dev Oct 12, 2021
@djrtwo djrtwo deleted the fix-gas-uint branch October 12, 2021 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants