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

feat: bump alloy #12930

Merged
merged 10 commits into from
Dec 2, 2024
Merged

feat: bump alloy #12930

merged 10 commits into from
Dec 2, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Nov 27, 2024

This PR mostly includes devnet-5 changes:

EIP-7742 is pretty invasive as it affects calculation of excess blob gas and blob fee and thus needs changes in evm, consensus, payload builder, etc.

I've added a helper fn to reth-consensus-common which calculates next block's excess blob fee based on the chain spec, timestamp and parent header. This fn is used in all components which need to compute the excess blob fee

This still does not cover all cases, e.g fill_block_env still delegates basefee computation to revm which does not account for EIP-7742 (cc @rakita)

reth/crates/evm/src/lib.rs

Lines 175 to 177 in d780bee

if let Some(excess_blob_gas) = header.excess_blob_gas() {
block_env.set_blob_excess_gas_and_price(excess_blob_gas);
}

This is also breaking for Odyssey as it now requires any post-prague to include target_blob_count

@klkvr klkvr mentioned this pull request Nov 28, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

some nits/suggestions

ptal @joshieDo @onbjerg

crates/ethereum/evm/src/execute.rs Show resolved Hide resolved
crates/ethereum/payload/src/lib.rs Outdated Show resolved Hide resolved
crates/ethereum/payload/src/lib.rs Outdated Show resolved Hide resolved
Comment on lines +289 to +290
// TODO: add as an argument and handle in `try_into_block`
target_blobs_per_block: 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's track these separately

crates/rpc/rpc/src/eth/bundle.rs Outdated Show resolved Hide resolved
crates/storage/codecs/src/alloy/header.rs Show resolved Hide resolved
@mattsse mattsse added A-dependencies Pull requests or issues that are about dependencies E-prague Related to the prague network upgrade labels Nov 30, 2024
@klkvr klkvr enabled auto-merge December 1, 2024 17:45
@klkvr klkvr added this pull request to the merge queue Dec 2, 2024
Merged via the queue into main with commit 7f88e62 Dec 2, 2024
42 checks passed
@klkvr klkvr deleted the klkvr/bump-alloy branch December 2, 2024 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Pull requests or issues that are about dependencies E-prague Related to the prague network upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants