Quick start: a local Kurtosis devnet #
What the specborn binary can do end to end today is follow a local multi-client devnet from its genesis, and, on such a devnet, perform validator duties and propose blocks with test keys. This page walks through the first with a configuration and scripts the project has run against the latest client releases (testnet/kurtosis/), and points to the second at the end. Everything runs on your machine; the only outside services contacted are GitHub (to find the latest client releases and to clone the Kurtosis ethereum-package) and the container registries (to pull images).
What you get: two Ethereum client pairs (geth + Lighthouse, geth + Teku) running a chain whose genesis is Fulu, with Gloas and Amsterdam from epoch 2 (slot 64), and specborn joining it as one more node: it syncs from genesis, executes every payload, crosses the fork, follows the head over gossip and prints one status line per slot that you can compare with the other clients.
Evidence: this page was followed as written in run quickstart-r1 on 2026-11-17, with the then-latest releases (Lighthouse v8.3.3, Teku 26.10.3, geth v1.17.10; ethereum-package 6.1.0; the full clients.lock is in the transcript). The page's five command blocks below were extracted from this page and run unchanged, with ENCLAVE=docs-quickstart in front (as step 1 allows) and PORT in step 4 replaced by each port in apis.txt. Results:
- specborn started on an empty data directory, printed every line listed in step 3 except
sync=SYNCING(target=…)(it was already caught up when it got its peers; see step 3), crossed the fork at slot 64 and followed to slot 138; - in all 20 hand comparisons of step 4 (10 rounds against Lighthouse and Teku),
headers/headandfinality_checkpointswere equal; - step 5's Ctrl-C (SIGINT) stopped it within 1 s, and the same command restarted it from its snapshot of finalized epoch 2. It followed again within 20 s, and 10 more comparisons, to slot 150, were all equal;
downremoved the enclave.
Sources: scripts/docs/runs/quickstart-r1.txt, the node's output in scripts/docs/runs/quickstart-r1.node.log.gz, and the driver scripts/docs/quickstart-run.sh. The same configuration also ran under the project's API-comparison harness: in run beaconapi-live-r12, specborn's head and finalized-checkpoint events equalled both references' in 354 of 354 comparisons (docs/pieces/beaconapi.md). This is TESTED in one run of the page. With later client releases, your run may differ.
Which devnet configurations work today #
Not every devnet file in testnet/kurtosis/ starts with today's client releases. Read this before choosing another one:
| Configuration | Started with the latest releases? | Evidence |
|---|---|---|
beaconapi-devnet.yaml (this page): Fulu genesis, Gloas at epoch 2, geth + Lighthouse, geth + Teku; pins the genesis-generator image (6.2.9 in the current file; run quickstart-r1 used 6.2.8, so the current pin has not run this page) | yes (2026-11-16 and 2026-11-17) | this page, run quickstart-r1 (scripts/docs/runs/quickstart-r1.txt); docs/pieces/beaconapi.md (runs r9 and r12) |
vduty-gloas-devnet.yaml (Gloas genesis, three pairs, generator pinned) and vduty-fulu-devnet.yaml (Fulu genesis, three pairs, the package's default generator) | yes, in runs that loaded validator keys into specborn (see the end of this page) | docs/pieces/vduty.md §21.7, §21.8 |
vproposeg-gloas-devnet.yaml (Gloas genesis) and vpropose-fulu-devnet.yaml (Fulu genesis), the block-proposal harnesses' devnets | yes, in the proposal runs | docs/pieces/vproposeg.md R5.3, docs/pieces/vpropose.md §14 |
glamsterdam-blobs-devnet.yaml and its variant glamsterdam-blobs-devnet-closed.yaml: four pairs (geth, Nethermind, reth, Besu with Lighthouse, Teku, Prysm, Lodestar) | only with another ethereum-package commit than the pinned release (ETHEREUM_PACKAGE_REF=69dcfbbcbde1ce91a6d0790c8150c84de55e3b2b), and only through the node piece's test driver testnet/kurtosis/node-w7-live.sh, which runs specborn inside rootless Docker's network namespace with bootnode records instead of a peers file | docs/pieces/node.md W7r13.5, W7r13.9 |
gloas-genesis-devnet.yaml (the default of testnet/kurtosis/node-devnet.sh) | no: with the pinned ethereum-package 6.1.0 and its default genesis generator, Teku 26.10.x refuses the generated configuration (missing or invalid values for constants MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT_GLOAS, …) and the genesis lacks the EIP-8282 system contracts that every Amsterdam block calls | docs/pieces/cpsync.md §23.2 (piece valnet's diagnosis); the Teku error on the same package release: docs/pieces/node.md W7r8.2; the comment in testnet/kurtosis/node-devnet.sh |
gloas-genesis-blobs-devnet.yaml (node-devnet.sh's other configuration) | not recorded either way with today's releases; it uses the same package release and default generator as the row above, with the same clients; not tried with today's releases | — |
The last successful runs of the node-devnet.sh configurations used October releases (Lighthouse v8.3.0-rc.0, Teku 26.9.1; docs/pieces/node.md §5). The project tests only against current releases, so those runs say nothing about today's clients.
Prerequisites #
- specborn built (Installation):
.lake/build/bin/specbornexists. - Docker (rootless Docker works: the scripts find its socket) and the Kurtosis CLI 1.23.0 or newer, from https://docs.kurtosis.com/install. Older versions publish the Kurtosis engine API (which can start containers) and every devnet port on all network interfaces; 1.23.0 binds them to
127.0.0.1. The devnet scripts refuse an older CLI. - git, Python 3 and curl.
- A few GB of free memory for the four client containers.
- Free local ports: the devnet publishes its clients' ports on
127.0.0.1from 63000 (execution) and 64000 (consensus) up;PORT_OFFSET=Nin front ofupmoves these ranges by N.
1. Start the devnet #
testnet/kurtosis/beaconapi-live.sh up
Before starting anything, this runs testnet/kurtosis/update-client-images.py: it asks GitHub for the latest stable release of every devnet client and of the Kurtosis ethereum-package, and checks with docker manifest inspect that each client's image exists. If the newest release of a client has no published image yet, it takes the newest of that client's last 10 releases whose image exists and says so (newest release … has no image yet, also recorded in clients.lock). It then rewrites the *_image: lines of testnet/kurtosis/*.yaml, writes the commit of the latest ethereum-package release into testnet/kurtosis/ethereum-package.ref, and records the resolved versions in testnet/kurtosis/clients.lock. It refuses to start the devnet when it cannot get an answer: GitHub unreachable or its quota spent, a registry rate limit with no local copy of the image, or none of a client's last 10 releases with an image. Note that this changes tracked files in your checkout.
It then clones the ethereum-package at the commit named in testnet/kurtosis/ethereum-package.ref (and four small Starlark dependencies) into build/beaconapi-pkg/, and runs it as a local package (the Kurtosis engine on the project's machine cannot clone from GitHub inside its containers). The enclave is specborn-beaconapi-diff (put ENCLAVE=name in front of every command of this page to choose another), started from testnet/kurtosis/beaconapi-devnet.yaml: mainnet preset, Fulu at genesis, Gloas at epoch 2, 12-second slots, 256 validators run by the two reference pairs.
Give the devnet a minute or two to produce blocks.
2. Collect the network files and the peers #
testnet/kurtosis/beaconapi-live.sh prepare
This writes, under build/beaconapi-devnet/:
| File | What it is | Where it comes from |
|---|---|---|
network/config.yaml, network/genesis.ssz, network/genesis.json | the chain configuration, the beacon genesis state and the execution genesis configuration | the enclave's el_cl_genesis_data artifact |
el-genesis.rlp | the execution genesis block, RLP | debug_getRawBlock of the devnet's first geth. Untrusted: specborn checks it against genesis.json (state root) and the beacon genesis state (block hash) and refuses it otherwise |
peers.txt | one line per consensus client: cl <label> 127.0.0.1 <tcp port> <peer id> | each CL's published libp2p port and its /eth/v1/node/identity |
apis.txt | the consensus clients' local beacon API ports | for comparing (step 4); specborn never reads it |
Only 127.0.0.1 ports of the enclave are contacted. prepare also deletes build/beaconapi-devnet/data, so do not run it again between a stop and a restart of the node if you want to keep its data directory.
3. Run specborn #
Run this from the repository root (run quickstart-r1 ran exactly this block):
.lake/build/bin/specborn run --datadir build/beaconapi-devnet/data \
--network build/beaconapi-devnet/network \
--el-genesis build/beaconapi-devnet/el-genesis.rlp \
--peers build/beaconapi-devnet/peers.txt \
--beacon-api --beacon-api-port 15052 --rpc-port 18545
It runs until you stop it (append --run-for-ms 1800000 to stop after 30 minutes). --beacon-api serves the node's view read-only on 127.0.0.1:15052 (Beacon API); --rpc-port 18545 moves the JSON-RPC, which is on by default, away from 127.0.0.1:8545, a port an execution client on your machine may already hold (JSON-RPC). Leaving out --beacon-api (and its port) or --rpc-port should change only which local servers start, but that variation was not run on this configuration. Any other run flag can be appended (see the CLI reference).
What you will see on standard output, among other lines (for example rpc: and pool: lines about the JSON-RPC's stored history and the transaction pool):
chain: Fulu genesis, Gloas from slot 64, genesis time …, 256 validators, execution genesis 0x…— the inputs were loaded and checked.data availability: sampling 8 columns [...]— the data columns this node samples (they depend on a node key that is fresh at every start).store: start from genesisandstore: N items, …— what was replayed from the data directory (nothing, the first time).libp2p: peer id …, thenrpc: JSON-RPC on 127.0.0.1:18545andbeacon api: listening on port 15052 (read-only).peer K: connected (...)for each consensus peer.- One
SLOT …status line per slot, three quarters into the slot. Before a peer has completed its handshake, the line sayssync=SYNCING(no_peer_status). While the node is catching up, it sayssync=SYNCING(target=…), and once caught up,sync=FOLLOWING. The fields are explained in Logging and privacy.
In run quickstart-r1 the node was started at slot 10, about two minutes after the devnet's genesis, and every line above appeared except SYNCING(target=…): its first status line said SYNCING(no_peer_status) and the second, at slot 11, sync=FOLLOWING. A node started later, with more of the chain to fetch, will print SYNCING(target=…) first. That case is not part of this run. A status line from that run, at slot 138: SLOT 138 sync=FOLLOWING head=0xde2031ed… head_slot=138 payload=FULL justified=3:0x65b814e3… finalized=2:0x22664326… ….
4. Compare with the other clients #
Each status line carries the head block root and slot, the checkpoints, the head's beacon state root and the execution head's hash and state root. To compare by hand, ask a reference client and specborn the same question (the ports of Lighthouse and Teku are in build/beaconapi-devnet/apis.txt, as cl <label> <port>):
cat build/beaconapi-devnet/apis.txt
curl -s http://127.0.0.1:15052/eth/v1/beacon/headers/head
curl -s http://127.0.0.1:PORT/eth/v1/beacon/headers/head # PORT: Lighthouse's or Teku's, from apis.txt
Asked within the same slot, the two answers carry the same root and slot. In run quickstart-r1, each comparison was asked 8 s into a slot, and all 30 were equal (20 before the restart of step 5, 10 after). /eth/v1/beacon/states/head/finality_checkpoints compares the checkpoints the same way.
The project's own comparison is the rest of the harness, testnet/kurtosis/beaconapi-live.sh run NAME ROUNDS: it starts its own specborn (a copy of the binary, a fresh data directory, the command line above, so stop yours first: the ports are the same). The fresh data directory is the same path as yours: before it starts, run deletes build/beaconapi-devnet/data (and build/beaconapi-devnet/corpus.jsonl), so the data directory of step 3 is gone afterwards; copy it elsewhere first if you want to keep it. It compares about 240 beacon API requests per round, one round a minute, with Lighthouse and Teku, compares the event streams, and then runs stress probes against the node (oversized duty requests, request floods, idle connections). It writes its transcript, NAME.txt, to testnet/kurtosis/logs/. Its result in run r12 is on the Beacon API page.
5. Stop and restart #
Stop the node with Ctrl-C (or any signal). There is no shutdown procedure to wait for: the data directory is written in atomic, crash-safe commits, and a restart with the same command resumes from it (see Data directory). In run quickstart-r1 the node was stopped with SIGINT (what Ctrl-C sends) at slot 138, once its finalized epoch was
- It exited within 1 s (exit status 130). Started again with the step 3
block, it began from its snapshot of the finalized block:
store: start from snapshot: finalized epoch 2 block 0x22664326… (slot 64), execution block 61, loaded and checked in 272 ms
store: 213 items, 151 replayed from item 62, 151 re-imported through the pipeline in 7738 ms (start 8010 ms); head slot 139
It reported sync=FOLLOWING 20 s after the start, and its answers in step 4 equalled both references' to slot 150. An earlier restart on this configuration, stopped with SIGTERM, is beaconapi-restart-r9 (docs/pieces/beaconapi.md).
Tear the devnet down with:
testnet/kurtosis/beaconapi-live.sh down
git status then shows the files update-client-images.py rewrote (testnet/kurtosis/clients.lock, testnet/kurtosis/ethereum-package.ref and the devnet files whose *_image: lines changed), if the releases moved since the checkout's copy; keep them or restore them with git checkout -- testnet/kurtosis.
Validator duties on a devnet (test keys only) #
The devnet of this page leaves no validators to specborn. To run specborn's validator client, with duties and block proposals, use the devnets and scripts described in Validator on a local devnet. Their keys are public: never use them, or that flow, with keys that hold real value.
If something goes wrong #
refusing to start a devnet: latest client releases could not be resolved— GitHub could not be reached or its quota is spent (the unauthenticated GitHub API allows 60 requests an hour), a registry refused the query with no local copy of the image, or none of a client's last 10 releases has an image. Retry later. When only the newest release lacks an image, the script does not refuse: it uses the newest release that has one and says so.- Kurtosis stops with Teku's
missing or invalid values for constants MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT_GLOAS, …— you started a configuration without the genesis-generator pin (for example one oftestnet/kurtosis/node-devnet.sh); use the configuration of this page (see the table above). Bind for 127.0.0.1:… failed: port is already allocated— another enclave or program holds the devnet's ports; tear it down or setPORT_OFFSET=N.- specborn exits with
this node starts at a Fulu or Gloas genesis …— the network directory is not one of these devnets. - Status lines stay at
sync=SYNCING(no_peer_status)— no peer completed a handshake. Checkbuild/beaconapi-devnet/peers.txtand rerunprepareafter the devnet was restarted (ports and peer ids change;preparealso deletes the node's data directory).
More in Troubleshooting.