test: upgrade all reth dependencies from v1.11.3 to v2.0.0#207
test: upgrade all reth dependencies from v1.11.3 to v2.0.0#207
Conversation
These crates were extracted from the reth monorepo in v2.0.0 and published to crates.io as version 0.1.0. Update workspace dependencies to reference crates.io instead of the git repository.
- Remove serde-bincode-compat feature (removed from reth-primitives-traits) - Remove RlpBincode impl (trait no longer exists) - Remove explicit SignedTransaction impls (now blanket-implemented) - Update Decompress::decompress to return DecompressError instead of DatabaseError - Update imports accordingly
- Remove unused reth-primitives dependency (crate removed in v2.0.0) - Remove is_pure method from Precompile impl (removed from trait in revm 36)
- Remove reth-primitives dependency (deleted upstream) - Remove PayloadBuilderAttributes trait (merged into PayloadAttributes) - Refactor EvolveEnginePayloadBuilderAttributes to impl PayloadAttributes - Change PayloadBuilder::Attributes to EvolveEnginePayloadAttributes - Migrate PayloadConfig to include payload_id field - Migrate BuildArguments to include execution_cache and trie_handle - Rename TransactionEnv to TransactionEnvMut (alloy-evm) - Update TryIntoTxEnv to new 3-generic-param signature - Add consensus_ref to PoolTransaction impl - Fix build_with_tasks generic args (3 → 2) - Add slot_num field to BlockEnv initializers - Remove set_state_clear_flag (handled by EVM spec) - Update BlockBuilder::finish to accept precomputed state root - Fix receipt conversion (replace into_rpc with map_logs) - Fix Withdrawals/Cow type mismatches - Rename extra_data_bytes to extra_data - Fix reth_primitives imports to alloy_consensus/reth_primitives_traits - Update BlockExecutorFactory::create_executor to use StateDB bound - Also remove reth-primitives from tests/Cargo.toml
- Migrate reth_primitives::{Header, Transaction} to alloy_consensus::Header
and reth_ethereum_primitives::Transaction
- Remove with_disable_proof_v2() from TreeConfig (method removed in v2.0.0)
Add missing const fn annotations and remove useless .into() conversion.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @randygrok's task —— View job PR Review: Reth v2.0.0 Dependency UpgradeI've completed a comprehensive review of this major dependency upgrade from reth v1.11.3 to v2.0.0. Here's my detailed assessment: ✅ StrengthsWell-Executed Migration
Code Quality Improvements
Security Considerations
|
Summary
reth-primitivesimports toalloy-consensus/reth-primitives-traits/reth-ethereum-primitivesPayloadBuilderAttributestrait —PayloadAttributesused directlyResultGas,new_mainnet_with_spec,TransactionEnvMutStateDBtrait bound (replacesDatabase + State)into_rpcremovalreth-codecsandreth-primitives-traitsto crates.ioTest plan
cargo checkpasses for all crates-D warnings