specborn documentation contents ↓

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

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 #