Skip to content

Mount ethrex snapshot at /data/chain-1 (datadir suffix)#12

Open
edg-l wants to merge 1 commit into
ethpandaops:masterfrom
edg-l:ethrex-datadir-chain-1-suffix
Open

Mount ethrex snapshot at /data/chain-1 (datadir suffix)#12
edg-l wants to merge 1 commit into
ethpandaops:masterfrom
edg-l:ethrex-datadir-chain-1-suffix

Conversation

@edg-l

@edg-l edg-l commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

ethrex treats --datadir as a base and appends a network suffix; for a custom genesis (chainId 1) the effective datadir is /data/chain-1. The runner mounts the snapshot at /data (spec.DataDir()), so ethrex doesn't find it. Setting container_dir: /data/chain-1 mounts the snapshot where ethrex reads. Other clients use /data directly and are unaffected.

ethrex appends a network suffix to --datadir; with a custom genesis
(chain id 1) the effective datadir is /data/chain-1. Mount the snapshot
there so ethrex finds the DB directly instead of relying on auto-migration.
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