Running a validator on a local Kurtosis devnet #
This is the only place where specborn's validator client has run. The devnet's validator keys come from the Kurtosis ethereum-package's public development mnemonic: they are public, never use this flow with keys that hold real value. Read the Quick start first: it covers the prerequisites (Docker, Kurtosis CLI 1.23.0 or newer, free local ports) and what update-client-images.py does to your checkout.
Two ways, both run from the repository root. The specborn node contacts only 127.0.0.1 ports of the enclave; the scripts also pull container images (the clients, and a key-generation image) and ask GitHub for the latest client releases, as the quick start describes.
A. One command, with proposals checked: the proposal harnesses #
These are the harnesses of the recorded proposal runs on the Block proposals page (docs/pieces/vproposeg.md R5.3, docs/pieces/vpropose.md §14). Each starts a devnet, exports the keystores of validators 192 to 255 (which no other client holds) with scripts/devnet/export-keys.sh (an ethstaker-deposit-cli image pinned by digest, run without network), imports and registers them in specborn's data directory, runs specborn with --validator-keys --fee-recipient … --graffiti … in two phases with a restart in between, checks every proposal on every other client and the slashing-protection exports of both phases, and tears the devnet down:
testnet/kurtosis/vproposeg-live.sh mygloas 2400 1200 # Gloas genesis, self-build proposals
testnet/kurtosis/vpropose-live.sh myfulu # Fulu genesis, Fulu proposals
They write NAME.txt in testnet/kurtosis/logs/ with the clients' versions, specborn's proposal lines and each check's verdict (BAR … PASS or FAIL). With the default phase lengths each takes over an hour. Both refuse a checkout with uncommitted changes (VPROPOSEG_ALLOW_DIRTY=1, VPROPOSE_ALLOW_DIRTY=1 override that).
B. Step by step: vduty-devnet.sh #
testnet/kurtosis/vduty-devnet.sh starts a devnet with three client pairs whose validators 192 to 255 are run by no other client, and leaves them to specborn. It needs the pinned consensus specifications in vendor/src/ (scripts/fetch-sources.sh): prepare copies missing configuration constants from vendor/src/consensus-specs/configs/mainnet.yaml into specborn's copy of the network's config.yaml.
testnet/kurtosis/vduty-devnet.sh up gloas # or: up fulu
testnet/kurtosis/vduty-devnet.sh prepare
testnet/kurtosis/vduty-devnet.sh keys
VDUTY_ALLOW_DIRTY=1 testnet/kurtosis/vduty-devnet.sh run mytest 2400 \
--fee-recipient 0x5ba5eba11ca4dead00000000000000000000beef --graffiti mytest
testnet/kurtosis/vduty-devnet.sh down
up gloasusestestnet/kurtosis/vduty-gloas-devnet.yaml(Gloas at genesis);up fuluusestestnet/kurtosis/vduty-fulu-devnet.yaml(Fulu genesis). The enclave isspecborn-vduty(ENCLAVE=namein front of every command chooses another).preparedownloads the network files intobuild/vduty-devnet/(OUT=dirchooses another) and deletesbuild/vduty-devnet/data, the data directory with the imported keys and the slashing-protection database. Run it only for a new chain.keysderives the keystores of validators 192 to 255 with theprotolambda/eth2-val-tools:latestimage (pulled by Docker, not pinned), imports them withspecborn validator keys import, and registers them in the slashing-protection database withspecborn validator slashing-protection register(they never signed on this chain).run NAME SECONDS [args…]builds specborn, copies the binary, and runsspecborn run --validator-keysagainst the devnet for SECONDS, with any furtherrunflags you append. The output goes toNAME.txtintestnet/kurtosis/logs/. It refuses to run with uncommitted changes in the checkout;upitself rewrites the devnet files' image lines, henceVDUTY_ALLOW_DIRTY=1(the transcript header lists the changed paths). This flow passes no--el-peers, so specborn's transaction pool has no execution peers and its blocks carry only transactions sent to its own JSON-RPC (read from the script; the harnesses of A pass--el-peers).- Afterwards,
testnet/kurtosis/vduty-check.pymeasures participation and looks for slashable pairs from the other clients' beacon APIs; its arguments are indocs/pieces/vduty.md§21.7.
What to look for in the transcript: the validator keys: lines, then duties: … lines (nothing is signed in the first 2 epochs: doppelganger protection), propose: … or propose(gloas): … lines in slots where one of the 64 validators is the proposer, and one duties: epoch … begins; totals since start: … summary per epoch.
This configuration ran with the duty piece's binary (docs/pieces/vduty.md §21.7, §21.8: attestations, aggregation, sync committee, PTC, before proposals existed). This sequence with the current binary, which also proposes, was not run as written for this book.
C. The D-25 campaign #
The project's gate campaign, scripts/devnet/d25-gate.sh RUN CONFIG… (configurations blobs, gloas, fulu, gloas-genesis: testnet/kurtosis/d25-*.yaml), runs the whole validator flow per devnet: keys, slashing protection, specborn with --fee-recipient and --graffiti, participation and proposals judged from every other client, a restart, a doppelganger test and an exclusive aggregation window. Its procedure and results are in docs/pieces/d25.md; the results so far are partial and its bar is not met.
Not on these devnets #
- A specborn proposal at the Fulu-to-Gloas boundary was never run (O-vproposeg-9). The D-25
gloasdevnet crosses at epoch 2, but specborn signs only from epoch 3 there. - Public networks: see What is and is not supported.