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

Change excess_data_gas and data_gas_used type from uint256 to uint64 #3392

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented May 30, 2023

Opening a PR to track it:

@karalabe raised it on R&D Discord:

Currently the Optimism Go code uses big.Int, which doesn't make much sense
at 76M excess data gas, the price is higher than the total ether in existence

If that (gasUsed) is uint64, then imho the 4844 fields should also be changed

Note: data_gas_used field (added by #3391) should also change to uint64 if this PR gets included.

EIP update PR: ethereum/EIPs#7095

@hwwhww hwwhww added the Deneb was called: eip-4844 label May 30, 2023
Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

lgtm. should make sure to test this in hive as well

(not sure the CI issues)

@hwwhww hwwhww force-pushed the excess_data_gas-type branch from cac23ca to 69ce4bb Compare June 1, 2023 15:15
@hwwhww
Copy link
Contributor Author

hwwhww commented Jun 1, 2023

updated: changed data_gas_used (added by #3391) type to uint64 as well

@djrtwo djrtwo mentioned this pull request Jun 1, 2023
5 tasks
@hwwhww hwwhww merged commit 5c5c3bd into dev Jun 1, 2023
@hwwhww hwwhww deleted the excess_data_gas-type branch June 1, 2023 15:49
@hwwhww hwwhww changed the title Change ExecutionPayload.excess_data_gas type from uint256 to uint64 Change excess_data_gas and data_gas_used type from uint256 to uint64 Jun 2, 2023
@realbigsean realbigsean mentioned this pull request Jun 5, 2023
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deneb was called: eip-4844
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants