System requirements #
specborn is pre-alpha, so these are the conditions under which it has been built and run, not tuned recommendations. Where a number is given, it is a measurement with its source.
Operating system and CPU #
- Linux on x86-64 is the only platform specborn has been built and run on. The operating-system shim
native/netio.cuses Linux interfaces (accept4,getrandom,SOCK_NONBLOCK/SOCK_CLOEXEC,poll); it is not expected to build on macOS or Windows, and no attempt has been made. - The consensus side uses several threads for cryptographic work (Lean tasks); the event loop of the node itself is single-threaded.
Build tools #
| Tool | Why | Notes |
|---|---|---|
elan with the Lean toolchain pinned in lean-toolchain (Lean 4.33.1) | compiles everything | elan installs the pinned toolchain automatically on the first lake call |
a C compiler available as cc (gcc is what the project uses) | Lake compiles native/netio.c with cc | Lean's own generated C is compiled by the toolchain's bundled compiler. Removing this need (no C of the project's own) is deferred until Lean offers what the C file provides (decision D-27) |
git | to obtain the source |
There are no other dependencies: no Mathlib, no Lean packages (lake-manifest.json lists none), no C libraries beyond libc. lake build downloads nothing.
At run time the node needs /usr/bin/sync (GNU or uutils coreutils, present on ordinary Linux installations): its storage engine calls it to make each commit durable, because Lean's standard library has no fsync (Data directory). The keystore import also runs /usr/bin/stat, only to warn about key files that others can read (it continues without the warning if stat is missing).
Optional tools:
| Tool | Needed for |
|---|---|
| Python 3 | the devnet helper scripts in testnet/kurtosis/, the test-transcript checkers, and rendering this documentation (scripts/docs/) |
| Docker and the Kurtosis CLI | running a local multi-client devnet (quick start) |
| Docker | building a specborn container image locally (scripts/docker/build.sh, see Installation) |
| curl | the devnet scripts (they query the devnet clients' local APIs) |
| about 22 GB of disk | the official test vectors fetched by scripts/fetch-fixtures.sh, needed only to run the test suites |
Memory #
Measured so far:
- A node checkpoint-synced to Hoodi (about 1.7 million validators) had a resident size of 9.4 GB after 18 minutes, the anchor state and the fork-choice store's block states included (
docs/pieces/cpsync.md§13.8, one run). Plan for at least 16 GB of RAM for a public test network. - On the devnet of the quick start (256 validators), the node's resident size was 665,128 kB (about 0.65 GB) after it had followed the chain from genesis for about 35 minutes (to about slot 178) while answering the run's API comparison requests, measured before the run's stress probes (
docs/pieces/beaconapi.md, runbeaconapi-live-r12;testnet/kurtosis/logs/beaconapi-live-r12.txt, one run). The same run's probes, which send the node very large requests on purpose, raised it to 798,288 kB. In runquickstart-r1of the same page, with no load beyond step 4's hand comparisons, it was 140,592 kB at the firstFOLLOWINGline (slot 11) and 698,452 kB at slot 138 (scripts/docs/runs/quickstart-r1.txt).
Mainnet has not been run, so there is no mainnet figure.
Decrypting validator keystores (specborn validator keys import, specborn run --validator-keys) uses up to about 1.2 to 1.4 GB at its peak, measured, for any number of standard scrypt keystores (they are decrypted up to four at a time within a 1 GiB scrypt budget; docs/pieces/vkeys.md §16, §26.4), and about 600 MB for the most expensive single keystore the bounds admit. The memory is used during start-up only, before the node syncs.
Building the proofs (a plain lake build, not needed to run the node) needs far more memory than running the node: one proof module's Lean process reached about 147 GiB of resident memory (Installation).
Disk #
specborn runkeeps, by default, only the items after the newest snapshot of the finalized block plus that snapshot; on the devnets snapshots were 3.3 MB each (docs/pieces/node.mdR6.6). See Data directory.- The checkpoint-sync command stores every backfilled block, envelope and column when given a data directory; on Hoodi a 90-minute run backfilled about 58,000 blocks and 144,000 columns (
docs/pieces/cpsync.md§14.4). The size on disk of that run is not recorded. - The build directory
.lake/of a full build (implementation, proofs and tests) is large; build only the executables if space is short (see Installation).
Network #
- Outbound TCP to the consensus and execution peers you list and those it discovers. specborn opens no listening TCP port for peers; its JSON-RPC (default
127.0.0.1:8545) and, with--beacon-api, its beacon API (127.0.0.1:5052) listen on the loopback address only. See Networking. - Discovery uses UDP:
specborn run --bootnodeskeeps a discv5 socket (and a discv4 one) open while it runs; checkpoint sync uses one for its discovery walk (at most 60 s at start, again when fewer than 8 peers are connected).
Clock #
The node derives the current slot from the system clock, as every consensus client does. Keep the clock synchronised (NTP or similar); a node whose clock is off by more than a fraction of a slot will judge blocks as early or late.