Repository navigation
fix(reth): skip snapshot download off mainnet and log failures - #102
Merged
Merged
Conversation
reth download only auto-discovers snapshots for Ethereum mainnet and fails on other chains, and its exit code was ignored, so hoodi and sepolia silently synced from genesis after an error. Skip the download off mainnet and log a warning when a mainnet download fails before falling back to syncing from genesis.
Contributor
❌ TropiBot report: SYNC TEST REPORT - FAILEDThis CI runs on a real DAppNode using the same RPC calls a user would make to configure a staker setup: execution client, consensus client, web3signer, MEV-boost, and relays. 📦 Package Under Test
📦 Clients Used
🔖 Version Tracking
⏱️ Timing
Total Duration: 10m 0s ❌ Error Details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
In
reth/entrypoint.sh:reth downloadwhenNETWORKis not mainnet, logging that the node syncs from genesis.Why
At the pinned reth v2.10.1,
reth downloadonly auto-discovers snapshots for Ethereum mainnet with the default snapshot API and bails on any other chain (crates/cli/commands/src/download/mod.rs, "Snapshots are only auto-discovered for Ethereum mainnet"). The entrypoint has noset -eand ignored the exit code, so Hoodi and Sepolia printed an error and quietly synced from genesis, and a failed mainnet download did the same with no clear message.Testing
sh -non the entrypoint. Not run on a node; worth checking that a fresh Hoodi install logs the skip and a fresh mainnet install still downloads the snapshot.