Skip to content

fix(reth): skip snapshot download off mainnet and log failures - #102

Merged
3alpha merged 1 commit into
mainfrom
fix/snapshot-download-mainnet-only
Nov 27, 2026
Merged

3alpha merged 1 commit into
mainfrom
fix/snapshot-download-mainnet-only

Conversation

@3alpha

@3alpha 3alpha commented Nov 27, 2026

Copy link
Copy Markdown
Member

What

In reth/entrypoint.sh:

  • Skip reth download when NETWORK is not mainnet, logging that the node syncs from genesis.
  • On mainnet, log a warning when the download fails before falling back to syncing from genesis.

Why

At the pinned reth v2.10.1, reth download only 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 no set -e and 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 -n on 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.

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.
@3alpha
3alpha merged commit ff7b6ab into main Nov 27, 2026
3 of 4 checks passed
@tropibot

tropibot Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

❌ TropiBot report: SYNC TEST REPORT - FAILED

This 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

Component DNP Name
Execution hoodi-reth.dnp.dappnode.eth
Consensus nimbus-hoodi.dnp.dappnode.eth
Web3Signer web3signer-hoodi.dnp.dappnode.eth
MEV Boost mev-boost-hoodi.dnp.dappnode.eth
Network hoodi

🔖 Version Tracking

Client Before After
Execution n/a n/a
Consensus n/a n/a

⏱️ Timing

Operation Duration Status
SetStakerConfig 10m 0s ❌
Cleanup 0.0s ✅

Total Duration: 10m 0s

❌ Error Details

Setup failed: test API transport failure during 'stakerConfigSet': error sending request for url (http://my.dappnode:7000/stakerConfigSet)

📋 View full CI logs

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.

1 participant