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

cmd/evm: set ExcessBlobGas from env #27796

Merged
merged 4 commits into from
Aug 1, 2023
Merged

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Jul 28, 2023

close #27785 and #27730

@holiman
Copy link
Contributor

holiman commented Jul 31, 2023

@jsvisa thanks! I added a test to trigger the original issue, and also made it so that we calculate it if it's not explicitly given.
I also added it to the output, however it's a bit unclear what to output:

  1. Output the "calculated value used in this block"? Or
  2. Output the "calculated value to use in the next block" ?

@winsvega please check if this PR fixes the problem.

jsvisa and others added 3 commits August 1, 2023 11:14
Signed-off-by: jsvisa <delweng@gmail.com>

cmd/evm: ExcessBlobGas in hexutil.Uint64

Signed-off-by: jsvisa <delweng@gmail.com>

cmd/evm: check blobTxType

Signed-off-by: jsvisa <delweng@gmail.com>
@holiman holiman linked an issue Aug 1, 2023 that may be closed by this pull request
@holiman holiman added this to the 1.12.1 milestone Aug 1, 2023
@holiman holiman merged commit f404a2d into ethereum:master Aug 1, 2023
1 check passed
@holiman holiman added the cancun label Aug 1, 2023
@jsvisa jsvisa deleted the cmd-evm-blobGas branch August 3, 2023 02:56
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Sets the `currentExcessBlobGas` from env, alternatively calculates it based on `parentExcessBlobGas` and `parentBlobGasUsed`. It then emits the `currentExcessBlobGas` and `currentBlobGasUsed` into the output, to be used as parent-values for a future iteration. 

Closes ethereum#27785
Closes ethereum#27783

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

geth t8n crash on cancun input geth t8n support cancun fork
2 participants