Skip to content

chore: bump reth to v2.1.0 and alloy to v2.0#483

Open
avalonche wants to merge 1 commit into
mainfrom
chore/bump-reth-v2.1.0
Open

chore: bump reth to v2.1.0 and alloy to v2.0#483
avalonche wants to merge 1 commit into
mainfrom
chore/bump-reth-v2.1.0

Conversation

@avalonche
Copy link
Copy Markdown
Collaborator

reth v2.1.0 includes a fix for a database corruption issue that could occur during state pruning. This upgrade is recommended for all nodes.

Upgrade core dependencies:

  • reth: v2.0.0 → v2.1.0
  • alloy-consensus/eips/network/provider/rpc-types: 1.8.x → 2.0.0
  • alloy-evm: 0.30.0 → 0.33.0
  • alloy-op-evm: 0.30.0 → 0.31.0
  • revm: 36.0.0 → 38.0.0
  • reth-primitives-traits: 0.1.0 → 0.3.0

Point op-reth deps to flashbots/optimism branch
reth-v2.1.0-with-v3-payload-id which carries the reth v2.1.0 upgrade and the V3 payload-id fix (commit 9b34dca).

Add [patch.crates-io] entries for op-alloy/alloy-op crates so transitive deps from crates.io resolve to the same git sources, avoiding duplicate incompatible type instances.

Code changes:

  • payload.rs: add block_access_list_hash / slot_number Header fields (None — EIP-7701/7934 not yet activated on OP chains)
  • builder_tx.rs, context.rs, payload_handler.rs: migrate deprecated gas_used() → tx_gas_used(), spent() → total_gas_spent() (EIP-8037 state gas split)

reth v2.1.0 includes a fix for a database corruption issue that could
occur during state pruning. This upgrade is recommended for all nodes.

Upgrade core dependencies:
- reth: v2.0.0 → v2.1.0
- alloy-consensus/eips/network/provider/rpc-types: 1.8.x → 2.0.0
- alloy-evm: 0.30.0 → 0.33.0
- alloy-op-evm: 0.30.0 → 0.31.0
- revm: 36.0.0 → 38.0.0
- reth-primitives-traits: 0.1.0 → 0.3.0

Point op-reth deps to flashbots/optimism branch
reth-v2.1.0-with-v3-payload-id which carries the reth v2.1.0
upgrade and the V3 payload-id fix (commit 9b34dca).

Add [patch.crates-io] entries for op-alloy/alloy-op crates so
transitive deps from crates.io resolve to the same git sources,
avoiding duplicate incompatible type instances.

Code changes:
- payload.rs: add block_access_list_hash / slot_number Header
  fields (None — EIP-7701/7934 not yet activated on OP chains)
- builder_tx.rs, context.rs, payload_handler.rs: migrate
  deprecated gas_used() → tx_gas_used(), spent() →
  total_gas_spent() (EIP-8037 state gas split)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@julio4 julio4 left a comment

Choose a reason for hiding this comment

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

Maybe let's bump directly to 2.2.0?

@julio4
Copy link
Copy Markdown
Member

julio4 commented May 1, 2026

On hold #484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants