Repository navigation
Conversation
…up, and docs - Run node (both compose files) and geth containers with host UID:GID via Makefile (RETH_UID/RETH_GID and MORPH_UID/MORPH_GID, falling back to 0:0) and pre-create bind-mount dirs so Linux clean/migration/binary-switch never hits Permission denied. - Clean morphnode's LevelDB store (node-data/node-data) and node.log/reth.toml in clean-* and setup-snapshot-data* so restored snapshots honor configured L1 heights. - Harden run-binary.sh to match run-binary-reth.sh (set -eu, absolute env paths, 120s GETH_READY_TIMEOUT, portable TCP probe without nc, stop morphnode before geth with wait, non-zero exit on timeout). - Preserve caller environment overrides in run-binary.sh and run-binary-reth.sh (matching docker compose --env-file precedence), detect unexpected child crashes instead of hanging, and display exact reth log path (logs/<chain_id>/reth.log). - Switch quickstart-* Docker targets from 'up node' to 'up' so Ctrl+C stops both execution client and node cleanly; capture per-network RETH_CONTAINER_NAME for stop-reth-node / stop-hoodi-reth-node; fix set-versions RETH_VERSION origin check. - Document geth binary mode and bootstrap-safe side-by-side shadow run in README.md.
`morph-reth proofs init` copies the full state at the current tip and can take far longer than the 120s engine-RPC readiness timeout on mainnet. Because the entrypoint ran it in the foreground without a signal handler, stopping during init orphaned the init process (PPID 1) while it kept writing the proof DB, so a following start could run a second init against the same MDBX. - entrypoint-reth.sh: run `proofs init` in the background, forward SIGTERM/SIGINT to it, and exit 143/130 (or the init exit code) instead of launching the node. As PID 1 in Docker this also makes `docker stop` interrupt init instead of waiting for SIGKILL. - run-binary-reth.sh: default to no readiness timeout when RETH_PROOFS_HISTORY=true (RETH_READY_TIMEOUT=0 means unlimited), reject non-numeric values, and print a waiting heartbeat. Crash detection is unchanged. - Document the behaviour and the resumability constraints in README and .env/.env_hoodi.
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.
Summary
Prepares
run-morph-nodefor migrating Morph's execution layer fromgo-ethereumtomorph-rethby resolving P0 runtime/compatibility blockers, closing geth/reth operational parity gaps, and adding CI validation.P0 — Blockers Fixed
docker-compose.reth.yml,Makefile): The publishedghcr.io/morph-l2/morph-rethimage runs as non-rootUSER morph-reth, which fails withPermission deniedon host bind mounts (/db) on Linux. Addeduser: "${RETH_UID:-0}:${RETH_GID:-0}"indocker-compose.reth.ymland passRETH_UID=$(id -u) RETH_GID=$(id -g)from Makefile reth targets so the container matches host directory ownership..gitmodules,morph,go-ethereum,morph-reth): Updatedmorphsubmodule fromv0.6.3(pre-Celadon / missing MorphTx v2) tov0.6.5(c6f1e14f),go-ethereumfrommorph-v2.2.6tomorph-v2.2.8(1c528b35), and registeredmorph-rethas a git submodule pinned atv1.5.0(c25b9a37) instead of cloning an untracked repo into the working tree..env,.env_hoodi): Updated default Mainnet/Hoodi geth & reth snapshots and heights to the latest entries inREADME.md(20261117-1/20261115-1). Replaced the invalid MainnetL1_BEACON_CHAIN_RPC(https://rpc.ankr.com/eth, an EL RPC) with a real Beacon REST API default (https://ethereum-beacon-api.publicnode.com), and provided working public Hoodi EL/CL defaults.geth->rethmigration & snapshot replacement (Makefile,README.md):setup-snapshot-data-reth(andsetup-snapshot-data) now validate the extracted tarball layout and replace existingnode-data/data/*and stalereth-data/members (includinghistorical-proofs) cleanly instead of failing mid-way withDirectory not empty. Added a dedicated Migrating fromgethtomorph-rethsection covering both in-place cutover and side-by-side shadow runs.P1 — Parity & Config Completeness
entrypoint-reth.sh& upcomingmorph_RPC gating (PR #241): Added--ipcdisable,LOG_DIR=/db/logs,RETH_HTTP_API/RETH_WS_API(defaultweb3,debug,eth,txpool,net,trace, with upgrade guidance to append,morphonce upgrading pastv1.5.0),RETH_LOG_FILTER,RETH_EXTRA_FLAGS, and optionalRETH_PROOFS_HISTORY=true(with post-Jade DB guard and idempotentmorph-reth proofs init).Makefile,.gitignore): Addeddownload-reth-binary(downloads official Linuxx86_64/aarch64GitHub Release tarballs with SHA-256 verification), tightenedbuild-rethto usecargo build --profile profiling --locked --bin morph-rethwith version-aware rebuild checks, fixedset-versionsto keep both compose files, all submodules,Makefile, andREADME.mdin sync, and gitignored.geth.pid/.reth.pid/.node.pid.RETH_HOMEsupport (Makefile): Addedrun-reth-validator,run-hoodi-reth-validator,stop-reth-validator,rm-reth-validator, and-binaryvariants. CapturedMORPH_HOME_*/RETH_HOME_*via:=and removed hardcoded../mainnet/../hoodipaths across quickstart, download, and clean targets, with automatic config/static-nodes bootstrap andmkdir -pforgenerate-jwt.clean-*-reth& graceful binary lifecycle (Makefile,run-binary-reth.sh): Expandedclean-*-rethto removehistorical-proofs,exex,blobstore,txpool-transactions-backup.rlp,known-peers.json,invalid_block_hooks, and logs. Hardenedrun-binary-reth.sh&stop-binaryto stopmorphnodebeforemorph-rethand wait for clean exit, increased readiness timeout to 120s (RETH_READY_TIMEOUT), removed hardncdependency, fixed absolute path env sourcing and non-zero timeout exit code.P2 — Operational Hardening, Static Assets, CI & Docs
docker-compose.reth.yml,Makefile): Auto-detectdocker composev2 (falling back todocker-compose), switchedrun-*targets from background&to detachedup -d, addedulimits.nofile=65535, pure-bash TCPhealthcheckon port8551, configurable ports (RETH_RPC_PORT,RETH_WS_PORT,RETH_METRICS_PORT,RETH_P2P_PORT) and container names, and Compose service DNS (http://reth:8545/http://reth:8551).Makefile): Addedwget -cresumable downloads, automatic.sha256checksum verification (bypassable viaSKIP_SHA256_CHECK=1), andpigzmulti-core extraction when available..github/workflows/ci.yml,genesis.json,data.zip,README.md): Updatedmainnet/geth-data/genesis.json&hoodi/geth-data/genesis.jsonwithceladonTimeandmaxTxPayloadBytesPerBlock: 737280, rebuiltmainnet/data.zip&hoodi/data.zipwithout.DS_Store/__MACOSXand with current configs +reth-data/, added GitHub Actions CI (sh -n,shellcheck,docker compose config,make -n, JSON/version/snapshot/data.zipconsistency), and updatedREADME.md(removed outdated internal-testing disclaimer, documentedx86-64-v3 + pclmulqdqCPU baseline and reference-index pruning constraints).Test Plan
sh -nanddash -nsyntax checks on allmorph-node/*.shscriptsmake -C morph-node -ndry-run verification across all reth/geth targetsentrypoint-reth.sh(default flags,RETH_PROOFS_HISTORY=trueempty-DB rejection & post-Jadeproofs init,RETH_EXTRA_FLAGS, emptystatic-nodes.json)run-binary-reth.sh(graceful stop ordermorphnode->morph-reth, clean PID removal, timeout exit code1) andmake stop-binarysetup-snapshot-data-rethover existing gethnode-data/data+ stalehistorical-proofsin a customRETH_HOMEentrypoint-reth.shagainst the compiledmorph-rethbinary.sha256formats and public Mainnet/Hoodi L1 Beacon endpoints