Commit d071e1b
authored
chore: migrate from reth 1.3.12 to 1.4.8 (#168)
## Summary
This PR migrates Odyssey from Reth 1.3.12 to 1.4.8, updating all related
dependencies to match Reth's workspace versions.
### Dependency Updates
- **Reth**: 1.3.12 → 1.4.8
- **Alloy**: 0.15 → 1.0.9
- **Op-alloy**: 0.15 → 0.17.2
- **Revm**: Updated to match Reth's versions
- revm: 24.0.1
- revm-primitives: 19.0.0
- revm-interpreter: 20.0.0
- revm-precompile: 20
- revm-inspectors: 0.23.0
- op-revm: 5.0.0
- **Jsonrpsee**: 0.24 → 0.25.1
- **Tower**: 0.4 → 0.5
### Breaking Changes Fixed
1. **NetworkBuilder trait update**: Changed `type Primitives` to `type
Network` to match Reth 1.4.x API
2. **OpAddOns generic parameters**: Updated to include all 4 required
type parameters (NodeAdapter, OpEthApiBuilder, OpEngineValidatorBuilder,
OpEngineApiBuilder)
3. **Jsonrpsee API changes**: Removed deprecated `http_only()` method
from Server builder
4. **Tower version compatibility**: Updated to 0.5 to match jsonrpsee
requirements
### Test Results
- ✅ All tests pass
- ✅ No clippy warnings
- ✅ Binary builds successfully
---
> **Migration approach**: Referenced the reth-gnosis migration commits
for guidance on updating dependencies and fixing breaking changes. The
migration was straightforward with most changes being dependency version
bumps and minor API adjustments.
>
> **Key references used**:
> - Reth 1.4.8 workspace dependencies
> - reth-gnosis migration PR:
gnosischain/reth_gnosis#73
> - reth-gnosis migration commit:
gnosischain/reth_gnosis@e76f50f
>
> **Prompts used to arrive at this result**:
> - "Migrate this codebase from reth version 1.3.12 to version 1.4.8.
This bump includes several breaking changes that we need to fix,
dependency updates (see reth workspace dependencies that we need to
mirror for alloy, op-alloy etc.
https://github.com/paradigmxyz/reth/blob/main/Cargo.toml) for release
notes that includes guides how to migrate certain breaking changes
please look through the recent releases especially 1.4.0
https://github.com/paradigmxyz/reth/releases. A good reference is also
this commit on reth-gnoses that did a similar migration
gnosischain/reth_gnosis@e76f50f
and can serve as a reference for how to migrate changes"
> - "Theres an additional migration pr on reth-gnosis to reth 1.4.8 from
1.4.3 on reth gnosis that can be helpful
https://github.com/gnosischain/reth_gnosis/pull/73/files"
> - "we also need to mirror reth 1.4.8 alloy-evm and revm dependencies
here"
> - "make sure there are no clippy warnings in the workspace, then open
a pr and summarize the migration and include the prompts used to arrive
at this result as > comments at the end"1 parent 876b574 commit d071e1b
File tree
6 files changed
+696
-657
lines changed- bin
- odyssey/src
- relay/src
- crates/node
- src
6 files changed
+696
-657
lines changed
0 commit comments