This release updates existing v0.3.0 testnet RPC and follower deployments from RPC Package v0.1.1-testnet. It moves testnet into its own testnet/ directory, adds grouped snapshot restore and a persistent L2 P2P identity, and removes every host dependency except Docker, Compose 2.24+ and Bash 4.4+.
This is a one-time maintenance upgrade. Commands, the settings file location and the startup procedure change. Read the testnet changelog before you start. Chain data, the Dogecoin volume, DATA_ROOT and RPC credentials are kept; no resync is needed.
Changes
- Docker and Bash only on the host. Python, jq, curl, sqlite3, GNU tar, ssh-keygen and socat are no longer needed. The helper scripts are now Bash (
./scripts/NAME.shreplacespython3 scripts/NAME.py) and run their tools from the pinned imageghcr.io/dogeos69/rpc-toolbox:0.1.0@sha256:922fb8a79337826795fa420bae02e3c8992975893d3e3243bbb8b1d364ef4a30, pulled on first use, so the host needs access toghcr.io(or the image pulled in advance). Helper containers run as the invoking user with all capabilities dropped, and none gets the Docker socket../scripts/doctor.shchecks a host. - Self-contained network directory. Testnet lives in
testnet/with its own Compose file, configuration, scripts, docs and changelog. Operator settings are in onetestnet/.envfile. The rootdocker-compose.yml,configs/,envs/andscripts/are gone.NETWORKandDOGECOIN_P2P_PORTare no longer used. - Grouped snapshots and staged startup.
./scripts/snapshot-group.sh list | restore GROUP_ID | startrestores a matched set of Dogecoin, L1 Interface and L2Reth snapshots with archive, checksum and SQLite validation, dependency checkpoints and an interruption journal.startwaits for Dogecoin sync and L1 Interface readiness before starting L2Reth. Snapshot set20261114024603(Dogecoin block 68,064,104, L2 block 9,456,342) is published in the snapshot group catalog;./scripts/snapshot-group.sh listshows it. - Run as an ordinary docker-group user. The scripts no longer need
sudo: run them as one ordinary user in thedockergroup (which, as with any Docker host, is root-equivalent).p2p-identity.sh initcreatesDATA_ROOTand the service data directories as that user, and ifDATA_ROOTbelongs to someone else it stops with the owner's name and the one-timechowncommand. Permission errors now name the owner ofDATA_ROOTinstead of suggestingsudo. - Persistent L2 P2P identity. L2Reth now requires a P2P key stored outside its data directory, so snapshot restore and reset keep the node ID.
./scripts/p2p-identity.sh initcreates it from the existingdiscovery-secret. - add-l2reth-peer over an IPC volume. L2Reth serves its admin IPC socket at
/run/reth/reth.ipcin thel2reth_ipcvolume.add-l2reth-peer.shreaches it through the toolbox and no longer needssudoor/proc.L2RETH_IPC_PATHis removed, andL2RETH_EXTRA_ARGSmay not set--ipcpathor--ipcdisable. - L1 derivation start block fix.
startL1Blockin the testnet genesis is now14023282, inside the L1 history the L1 Interface serves. The genesis hash is unchanged. - L2Reth startup and limits. L2Reth waits for L1 Interface
/api/v1/health/readyon every start. DefaultL2RETH_MEM_LIMITis now16g(was8g). - RPC and operations. Configurable
L2RETH_HTTP_API,L2RETH_WS_APIandL2RETH_EXTRA_ARGS; Prometheus metrics on127.0.0.1:6060; log rotation for every container (100 MB × 5); an L1 Interface healthcheck;INTERNAL_BIND_ADDRfor internal ports. - Documentation. New operations, snapshots, P2P identity and RPC verification guides, including how the L1 Interface's synthetic L1 heights relate to Dogecoin heights, and clearer restore log messages.
- Cleanup. Removed Celestia and L2Geth leftovers, unused env files and world-writable permission changes in the L1 Interface bootstrap.
L2RETH_PEER_LISTreplacesL2GETH_PEER_LIST(still accepted).
Service images are unchanged from v0.1.1-testnet; the toolbox image above is the only new image. L2Reth stays on dogeos69/rollup-node:v0.3.0-beta.1c-ca.20261021.1-stateroot@sha256:ae9af79d24d585edb0a644f246a62517318f9cd6ed872295e8d369c4dcc0429f.
Upgrade
Plan a maintenance window. L2 RPC is unavailable while the containers are recreated, Dogecoin reloads its block index, and L2Reth catches up.
Before you start
Check your current settings for these, because they stop L2Reth or the helpers after the upgrade:
L2RETH_EXTRA_ARGSmust not contain--nat,--port,--discovery.port,--p2p-secret-key,--ipcpathor--ipcdisable; L2Reth exits with an error if it does. UseL2_P2P_PORTandL2RETH_P2P_PUBLIC_IPinstead.- If L2Reth uses a custom L1 endpoint, also set
L2RETH_L1_READY_URLintestnet/config/l2reth.env. - Custom L1 Interface database-path overrides are rejected; reconcile them first.
L2RETH_P2P_SOURCE_CIDRSis no longer used and can be removed.
Steps
- In the repository root, record what the running deployment resolves to. If your settings file is already at
testnet/.env.testnet, run this intestnet/instead and in step 2 rename it withmv .env.testnet .envthere.
docker compose --env-file .env.testnet config \
| grep -E '^ *name:|source: .*/(l2reth|l1-interface)$' | sort -u \
> /tmp/dogeos-layout-before.txt- Update the checkout to
v0.2.0-testnet, move the settings file, and confirm the new layout resolves to the same project name, Dogecoin volume and data directories:
git fetch --tags && git checkout v0.2.0-testnet # or: git pull on main
mv .env.testnet testnet/.env
cd testnet
docker compose config \
| grep -E '^ *name:|source: .*/(l2reth|l1-interface)$' | sort -u \
| diff /tmp/dogeos-layout-before.txt - && echo "Layout unchanged"Continue only after Layout unchanged. Otherwise follow If the layout check differs. An existing l1-interface.local.env is still read from envs/testnet/ or testnet/config/ but is deprecated; move its values into testnet/.env using the settings table in the changelog.
- On a host with less than 64 GB of memory, set
L2RETH_MEM_LIMITintestnet/.envfirst (6gon a 32 GB host). Then check the host (including that the toolbox image can be pulled), create the P2P key, and start:
./scripts/doctor.sh
./scripts/p2p-identity.sh init
./scripts/snapshot-group.sh startsnapshot-group.sh start pulls images and recreates the containers once, which applies the new L2Reth IPC path, entrypoint, memory limit, log rotation and healthchecks.
Run these and all later scripts as one ordinary user in the docker group. If DATA_ROOT already belongs to root (Docker created it at an earlier start, or scripts ran with sudo), p2p-identity.sh init stops and names the owner. Before running it, either hand the directory over once, with the stack stopped:
docker compose stop
sudo chown -R "$USER": /your/data/rootor keep running every script with sudo. Do not mix the two: scripts run under sudo create root-owned files that the ordinary user cannot replace later. The Dogecoin Docker volume is not affected. See P2P Identity.
- Update anything that runs Compose from the repository root (cron jobs, systemd units, deploy and monitoring scripts) to run inside
testnet/without--env-file. Do not schedulesnapshot-group.sh startas a periodic health check; it stops L1 and L2 each time it runs.
Nodes started from an empty L2 data directory (instead of restoring the L2Reth snapshot) on an earlier release may have no safe or finalized head. Reset L1/L2 data with this release (run in testnet/; the old data is moved to timestamped backups and the Dogecoin volume is kept), or restore a snapshot group as described in Snapshots and Recovery. Nodes restored from a snapshot are not affected.
./scripts/reset-chain-data.sh
./scripts/snapshot-group.sh startA group restore never replaces an existing Dogecoin volume: on a node that already has one, set a new, unused DOGECOIN_VOLUME_NAME first, and use --force to keep the existing L1/L2 data as a backup.
Verify
docker compose ps
./scripts/verify-rpc.sh
curl --fail http://localhost:9090/health
curl --fail http://localhost:9090/api/v1/health/readyverify-rpc.sh compares http://127.0.0.1:8545 with the published reference RPC; if you changed the HTTP port, pass --local-url http://127.0.0.1:PORT. Both L1 Interface health endpoints should return HTTP 200. Confirm that safe and finalized advance. To check peering, run ./scripts/add-l2reth-peer.sh; with no argument it adds the public testnet bootnode, or pass an enode://… URL.
This release was validated end to end on a testnet host: a grouped restore with ./scripts/snapshot-group.sh restore latest (Dogecoin, L1 Interface and L2Reth snapshots, with SHA-256 and archive layout checks), staged startup, verify-rpc.sh (PASS), L1 Interface /health (ready), and adding a real peer with add-l2reth-peer.sh through the IPC volume all passed.