| name | kurtosis-devnet |
| description | Run Ethereum multi-client devnets using Kurtosis and the ethpandaops/ethereum-package. Use for spinning up local testnets, validating cross-client interop, testing fork transitions, running assertoor checks, debugging CL/EL client interactions, or verifying new feature implementations across multiple consensus and execution clients. |
Kurtosis Devnet
Run Ethereum consensus/execution client devnets via Kurtosis + ethereum-package.
Prerequisites
- Kurtosis CLI installed
- Docker running with sufficient resources (8GB+ RAM recommended for multi-client devnets)
Quick Start
kurtosis run github.com/ethpandaops/ethereum-package \
--enclave <name> \
--args-file network_params.yaml \
--image-download always
kurtosis enclave ls
kurtosis enclave inspect <name>
kurtosis service logs <enclave> <service-name>
kurtosis service logs <enclave> <service-name> --follow
kurtosis enclave rm -f <name>
kurtosis clean -a
Config File (network_params.yaml)
See references/config-reference.md for the full config structure.
Key sections:
participants: list of CL+EL client pairs with images, flags, validator counts
network_params: fork epochs, slot time, network-level settings
additional_services: dora (explorer), assertoor (testing), prometheus, grafana
assertoor_params: automated chain health checks
port_publisher: expose CL/EL ports to host
Building Custom Client Images
When testing local Lodestar branches, build a Docker image first:
cd ~/lodestar && docker build -t lodestar:custom -f Dockerfile.dev .
cd ~/lodestar && docker build -t lodestar:custom .
Always use Dockerfile.dev for iterative development. It caches dependency layers and rebuilds in seconds vs minutes for the production Dockerfile. Only use the production Dockerfile for final validation or debugging build issues.
Service Naming Convention
Kurtosis names services as: {role}-{index}-{cl_type}-{el_type}
Examples:
cl-1-lodestar-reth โ first CL node (Lodestar with Reth EL)
el-1-reth-lodestar โ corresponding EL node
vc-1-lodestar-reth โ validator client
Accessing Services
After kurtosis enclave inspect <name>, find mapped ports:
curl http://127.0.0.1:<mapped-port>/eth/v1/node/syncing
Port publisher assigns sequential ports (step of 5 per service).
Assertoor (Automated Testing)
Add to config:
additional_services:
- assertoor
assertoor_params:
run_stability_check: true
run_block_proposal_check: true
Check results via the assertoor web UI (port shown in kurtosis enclave inspect).
Common Devnet Patterns
Fork Transition Testing
network_params:
electra_fork_epoch: 0
fulu_fork_epoch: 1
seconds_per_slot: 6
Mixed-Client Topology (Cross-Client Interop)
participants:
- cl_type: lodestar
el_type: reth
count: 2
validator_count: 128
- cl_type: lighthouse
el_type: geth
count: 2
validator_count: 128
Observer Nodes (No Validators)
- cl_type: lodestar
cl_image: lodestar:custom
el_type: reth
count: 1
validator_count: 0
Supernode Mode
Set supernode: true to run beacon+validator in a single process (faster startup, simpler topology):
- cl_type: lodestar
el_type: reth
supernode: true
validator_count: 128
Extra CL/VC Params
cl_extra_params:
- --targetPeers=8
- --logLevel=debug
vc_extra_params:
- --suggestedFeeRecipient=0x...
Monitoring & Debugging
kurtosis service logs <enclave> cl-1-lodestar-reth --follow
for svc in $(kurtosis enclave inspect <enclave> 2>/dev/null | grep -oE 'cl-[0-9]+-[^[:space:]]+'); do
kurtosis service logs <enclave> $svc > "/tmp/${svc}.log" 2>&1
done
curl -s http://127.0.0.1:<port>/eth/v1/beacon/states/head/finality_checkpoints | jq
curl -s http://127.0.0.1:<port>/eth/v1/node/peers | jq '.data | length'
curl -s http://127.0.0.1:<port>/eth/v1/node/syncing | jq
Wait for Finality
Finality typically takes 2-3 epochs after genesis. With seconds_per_slot: 6 and 32 slots/epoch:
- 1 epoch โ 192s (3.2 min)
- First finalization โ epoch 3-4 boundary (โ10-13 min)
Monitor:
curl -s http://<port>/eth/v1/beacon/states/head/finality_checkpoints | jq '.data.finalized.epoch'
Acceptance Criteria Pattern
For interop validation, define acceptance criteria before running the soak test:
for svc in cl-1-lodestar-reth cl-2-lodestar-reth; do
echo "=== $svc ==="
kurtosis service logs <enclave> $svc 2>&1 | grep -c "ERROR" || echo "0 errors"
done
Troubleshooting
| Issue | Fix |
|---|
| Peers not connecting | Increase --targetPeers, check directPeers config |
| No finality | Need โฅ2/3 validators attesting; check VC logs |
| "discv5 has no boot enr" | Harmless startup warning, ignore |
| Port conflicts | Change public_port_start or stop conflicting enclaves |
| Image not found | Ensure Docker image is built locally or available in registry |
| Slow startup | Use Dockerfile.dev for local builds; reduce validator count |
| Docker bind error | Use non-default port ranges; kurtosis clean -a between runs |
| Stale enclave state | Always kurtosis clean -a before relaunching (not docker system prune) |
Tips
- Start small: 2+2 nodes for iteration, scale up for final validation
- Test both roles: Validator nodes show different bugs than observers โ always check both
- Multiple soak passes: First clean run may miss edge cases. Run extended soaks (hours).
kurtosis clean -a between runs โ never use docker system prune (it can remove Kurtosis engine images)
- Debug logs: Set
global_log_level: "debug" for verbose output from all nodes
- Per-participant log levels: Use
cl_log_level / el_log_level on individual entries for targeted debugging
Self-Maintenance
If any commands, file paths, URLs, or configurations in this skill are outdated or no longer work, update this SKILL.md with the correct information after completing your current task. Skills should stay accurate and self-healing โ fix what you find broken.