Repository navigation
fix(deps): pin reth to morph-l2/reth v2.5.2-morph.1 for the trie seek-boundary fix - #228
Conversation
…-boundary fix reth v1.3.5 through v2.9.0 can skip a hashed leaf inserted between a seek prefix and a deeper stored branch when the serial StateRoot computes an incremental root (paradigmxyz/reth#28264). morph-reth reaches that path in the engine's serial fallback, the payload builder, the pre-Jade state-root job and morph-proofs. Upstream first ships the fix in v2.10.0, which also replaces revm with evm2, so pin to the morph-l2/reth fork tag v2.5.2-morph.1 instead: upstream v2.5.2 plus a cherry-pick of 8572c88fe0. Cargo.lock only changes the source of the 105 reth crates; versions are unchanged and there is no database change. Add the upstream regression test to morph-proofs so CI fails if the pinned reth-trie regresses, and allow the fork in deny.toml.
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Bump the affected crates to patched, semver-compatible releases (lockfile only): - libz-sys 1.1.28 -> 1.1.31 (RUSTSEC-2026-0418) - rustls-webpki 0.103.15 -> 0.103.16 (RUSTSEC-2026-0382) - webpki-roots 1.0.7 -> 1.0.11 (RUSTSEC-2026-0381) - webpki-root-certs 1.0.7 -> 1.0.11 (RUSTSEC-2026-0383) - zstd 0.13.3 -> 0.13.4 (RUSTSEC-2026-0391) - zstd-safe 7.2.4 -> 7.4.0 (RUSTSEC-2026-0398, RUSTSEC-2026-0403) - zstd-sys 2.0.16 -> 2.1.2 (RUSTSEC-2026-0410) - tokio 1.52.3 -> 1.53.3 (RUSTSEC-2026-0386) Ignore the two advisories that have no compatible fix: - RUSTSEC-2026-0387 (crypto-bigint 0.5): fixed only in 0.7.6+, which needs the elliptic-curve 0.14 major upgrade in alloy and reth. - RUSTSEC-2026-0441 (pin-utils, unmaintained): reached only through wasmtimer, a wasm32-only dependency of alloy.
With a cold cache, for example after a dependency source change, the build takes about 12 minutes before the E2E tests start. The job then hit the 15-minute limit while saving the cache, even though all 146 tests had passed. nextest's slow-timeout still bounds each test.
Cargo.toml: keep main's morph-l2/reth v2.5.2-morph.1 pin (from #228) and re-apply this branch's addition of the reth-network dependency on top of it. The branch was based on the older paradigmxyz/reth reference, so its conflict side would have reverted the pin.
Cargo.toml: keep main's morph-l2/reth v2.5.2-morph.1 pin and re-apply this branch's SP1 requirement on top of it -- reth-evm and reth-revm stay default-features = false. The branch's conflict side was based on the older paradigmxyz/reth reference and would have reverted the pin from #228.
Summary
morph-l2/rethfork tagv2.5.2-morph.1: upstreamv2.5.2plus a cherry-pick of paradigmxyz/reth@8572c88fe0 (paradigmxyz/reth#28264,fix(trie): tighten iterator seek boundary).morph-proofs, so CI fails if the pinnedreth-trieever regresses.deny.toml.Why
reth v1.3.5 through v2.9.0 can compute an incorrect incremental state root in the serial
StateRoot. morph-reth uses that path in the engine's serial fallback, the payload builder, the pre-Jade state-root job andmorph-proofs.Why a fork instead of upgrading to v2.10.0
v2.10.0 is the first upstream release with the fix, but v2.5.2 → v2.10.0 spans 807 commits. It includes the revm → evm2 switch (v2.9.0, which means porting
morph-revm/morph-evm), trie API removals (ComputedTrieData, used bymorph-proofs-exex), an MSRV bump to 1.96,reth-codecs0.6 → 0.8, and several default changes (persistence threshold 7 → 50, state masking on). That upgrade needs its own plan; this PR is the minimal fix.What changed
Cargo.toml: the 59reth-*entries move fromparadigmxyz/rethtagv2.5.2tomorph-l2/rethtagv2.5.2-morph.1. The workspace version goes from 1.4.0 to 1.4.1.Cargo.lock:sourceand stay at 2.5.2.v2.5.2and touches onlycrates/trie/trie/src/node_iter.rs(compare). The production change is identical to upstream; the cherry-picked test only neededB256added to its imports..github/workflows/test.yml: with a cold cache the E2E build takes about 12 minutes. On the first run of this PR all 146 E2E tests passed, but the job hit the 15-minute limit while saving the cache. nextest's per-testslow-timeoutstill bounds each test.cargo-deny advisories
These advisories were published after the last Deny run on
main, so they are not specific to this PR. Each bump is a semver-compatible, lockfile-only update:libz-sysrustls-webpkiwebpki-rootswebpki-root-certszstdzstd-safezstd-systokioIgnored in
deny.toml, because no compatible fix exists:crypto-bigint0.5): it comes in throughelliptic-curve0.13 (k256/p256/ecdsa, via alloy and reth). The fix is only in 0.7.6+, which needs theelliptic-curve0.14 major upgrade upstream.pin-utils, unmaintained): it is reached only throughwasmtimer, a wasm32-only dependency of alloy, so it is not built for our targets.Testing
incremental_root_includes_leaf_before_deeper_stored_branch).cargo deny --all-features check allwas run locally. The advisories above are no longer reported, and both ignores are matched.cargo-denyis 0.18.8. It also reports two older unsound advisories on transitive crates (anyhow, RUSTSEC-2026-0190;lru, RUSTSEC-2026-0253).cargo-deny0.20.2 does not fail on those two, and this PR does not change them.cargo metadata --locked. Its new checksums match the crates.io index, and it changes no other package.Rollout
--engine.state-root-fallback(forces the serial path on every block), plus a layer1-mode validator.