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

fix: add excess_blob_gas for first cancun block #4700

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Sep 20, 2023

If the excess blob gas is missing, the EVM will otherwise return ExcessBlobGasNotSet to the payload builder on the first cancun block, since next_block_blob_fee returns None for pre-cancun blocks. This sets the excess blob gas to zero on the first cancun block.

@Rjected Rjected added C-bug An unexpected or incorrect behavior A-block-building Related to block building labels Sep 20, 2023
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #4700 (c0944c8) into main (30b4ddb) will decrease coverage by 0.05%.
Report is 1 commits behind head on main.
The diff coverage is 0.00%.

Impacted file tree graph

Files Changed Coverage Δ
crates/payload/builder/src/payload.rs 0.00% <0.00%> (ø)

... and 12 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.72% <0.00%> (-0.03%) ⬇️
unit-tests 63.31% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 32.17% <ø> (ø)
blockchain tree 83.75% <ø> (ø)
pipeline 88.53% <ø> (ø)
storage (db) 72.51% <ø> (ø)
trie 94.77% <ø> (ø)
txpool 49.82% <ø> (-0.47%) ⬇️
networking 77.07% <ø> (-0.05%) ⬇️
rpc 57.83% <ø> (+<0.01%) ⬆️
consensus 63.21% <ø> (ø)
revm 28.38% <ø> (ø)
payload builder 8.35% <0.00%> (-0.11%) ⬇️
primitives 86.53% <ø> (-0.04%) ⬇️

Comment on lines 187 to 189
|| {
if chain_spec.is_cancun_activated_at_timestamp(self.timestamp) {
// default excess blob gas is zero
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this can be simplified by checking the spec_id instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh right, I didn't think of that

@mattsse mattsse added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit f00df57 Sep 21, 2023
22 checks passed
@mattsse mattsse deleted the dan/add-first-cancun-block-blockenv branch September 21, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-block-building Related to block building C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants