Appearance
Install Cinder
This page tells you how to get the Cinder binaries. At the end you have the cinder node binary and its tools, and you know that they work.
Before you start
- A machine that meets the hardware requirements: Linux on x86-64, and a CPU with the x86-64-v3 instructions and ADX, SHA and AES.
- Access to the source repository. The repository is private during the alpha. Do the steps of Get access first.
Get access
The source repository is private during the alpha. The git clone and gh release download commands on this page work only for a GitHub account that has access. Without access, GitHub answers "Repository not found".
Send the alpha access form. Give your GitHub username in the form: we send the invitation to that account.
Accept the invitation. GitHub sends it to the email address of your GitHub account. You can also see it on your GitHub notifications page.
Check that your account has access. The command uses the GitHub CLI, which uses your GitHub login:
bashgh repo view getcinder/cinder --json name --jq .nameOutput
textcinderIf the command prints
Could not resolve to a Repository, your account does not have access yet.Let
gituse the same login for HTTPS. Thengit clonedoes not ask for a password:bashgh auth setup-gitOutput
The command prints nothing. If you use SSH keys with GitHub, you can skip this step and clone with
[email protected]:getcinder/cinder.git.
Quick start
These commands need access to the repository. On Ubuntu 24.04 or Debian 13, they install the build tools, get the source code, build Cinder and check the build:
bash
sudo apt-get update
sudo apt-get install -y clang make git python3 ca-certificates
git clone https://github.com/getcinder/cinder.git && cd cinder
make -j$(nproc) PROFILE=release apps
build/release/bin/cinder --helpOutput
The last command prints the usage text of cinder, as in step 4 of Build from source. The sections below explain each step.
Ways to install
| Way | Status |
|---|---|
| Download a release | Source archives only. No binaries yet |
| Docker | Planned. Not available yet |
| Build from source | Available. Use this way now |
Download a release
Each release on the GitHub releases page of the repository has a source archive and a SHA256SUMS file. There are no binaries yet. Until there are, build from source. A release build is for a fixed CPU level (x86-64-v3 with ADX, SHA and AES). Thus a binary works on each CPU that has these instructions, not only on the build machine.
To build a release from its source archive:
Download the source archive of the release and its checksum file. While the repository is private, use the GitHub CLI, which uses your GitHub login. Your account must have access:
bashgh release download v0.9.7 --repo getcinder/cinderOutput
The command prints nothing. It writes
cinder-0.9.7.tar.gzandSHA256SUMSto the current directory.Check the archive against the checksum file.
bashsha256sum -c SHA256SUMSOutput
textcinder-0.9.7.tar.gz: OKIf the command prints
FAILED, do not use the archive. Download it again.Extract the archive and go to its top directory.
bashtar xzf cinder-0.9.7.tar.gz cd cinder-0.9.7Output
The commands print nothing.
Do steps 1, 3 and 4 of Build from source. Step 2 (get the source code) is not necessary.
A build from a source archive has no git data. It reports the version that the archive holds, for example in web3_clientVersion:
- The archive of a release after v0.9.0, for example X.Y.Z, reports
Cinder/vX.Y.Z/linux-x86_64/c17. - The v0.9.0 archive is older. A build from it reports
Cinder/v0.9.0-dev+0000000/linux-x86_64/c17. The code is the same as the v0.9.0 tag.
Docker
There is no Docker image yet. The project plans one. Its binaries will be the release build, for x86-64-v3 with ADX, SHA and AES.
Build from source
The build needs clang, GNU make and GNU ld. All other dependencies are in the source tree. The build downloads nothing.
Install the build tools. On Ubuntu 24.04 and Debian 13:
bashsudo apt-get update sudo apt-get install -y clang make git python3 ca-certificates clang --versionOutput
The last command prints the version of clang. On Ubuntu 24.04:
textUbuntu clang version 18.1.3 (1ubuntu1) Target: x86_64-pc-linux-gnu Thread model: posixWhat each package does:
Package Why clangThe C compiler. Do not use GCC 15.2.0: it compiles the vendored cryptography code incorrectly makeRuns the build. The binutilspackage, whichclanginstalls, gives the linkerld.bfdgitGets the source code. The build also reads the commit for the version string python3Runs make test. The node build does not need it. The docs checks also need PyYAML and npm (for contributors only)ca-certificatesLets gitconnect to GitHub over HTTPSThe build uses
clangfromPATH. To use a different compiler, setCC, for examplemake CC=clang-19.Get the source code and go to its top directory. Your account must have access. To build a release, check out its tag.
bashgit clone https://github.com/getcinder/cinder.git cd cinder git checkout v0.9.7Output
textCloning into 'cinder'...git checkoutalso prints a note about a "detached HEAD". This is normal for a tag. To build the newest code, do not dogit checkout.Build the node and its tools.
bashmake -j$(nproc) PROFILE=release appsOutput
The build prints one line for each file that it makes. These are the last lines:
textLD build/release/bin/cinder-rpc-diff LD build/release/bin/cinder-bench-node LD build/release/bin/bench-gasThe order of the lines can be different. The binaries go to
build/release/bin. On a modern machine with 8 parallel jobs (-j8), the build takes about 1 minute. With one job (no-j), it takes about 2 to 3 minutes.The build uses
-O3 -march=x86-64-v3 -madx -msha. Thus the binaries work on each CPU with the x86-64-v3 instructions and ADX, SHA and AES, and you can copy them to a different machine. Read Hardware requirements. For a build for only the CPU of the build machine, addARCH=native. The binaries then go tobuild/release-native/bin. Do not copy them to a different machine.Binary Purpose cinderThe node cinder-importMakes the first Cinder database from a reth database cinder-mirror,cinder-replayOptional: send the same blocks to Cinder and to another execution client, for a comparison. Read Engine mode and shadow mode cinder-rpc-diff,cinder-bench-node,cinder-p2p-probe,poc-exec,bench-gasTools for comparisons, measurements and tests. bench-gasis in the releases from 0.9.7Check that it built. Ask the node binary for its options.
bashbuild/release/bin/cinder --helpOutput
textusage: cinder --engine --db DIR --jwt FILE [--authrpc-addr A] [--authrpc-port P] [--authrpc-max-connections N] [--threads N] [--persist-depth K] [--backfill-rpc URL] [--p2p] [--p2p-peers N] [--p2p-inbound N] [--p2p-port P] [--peer ENODE]... [--no-warm] [--no-exec-iso] [--http] [--http-addr A] [--http-port P] [--rpc-gascap G] [--rpc-txfeecap ETH] [--builder-gaslimit G] [--builder-extradata S] [--cache-mb N] [--rpc-max-tracing-requests N] [--rpc-max-witness-requests N] [--rpc-js-memory-mb M] [--rpc-max-connections N] [--amsterdam-time T] [--http-api L] [--ws-api L] [--rpc-timeout D] [--http-disable-compression] cinder --serve --db DIR [--http-addr A] [--http-port P] [--rpc-gascap G] [--rpc-max-tracing-requests N] [--rpc-max-witness-requests N] [--rpc-js-memory-mb M] [--rpc-max-connections N] [--http-api L] [--ws-api L] [--rpc-timeout D] [--http-disable-compression] cinder --shadow --db DIR [--rpc URL] [--threads N] [--confirm K] [--blocks N] [--receipts] [--amsterdam-time T] cinder --build-log-filters --db DIR (the log filter rows of an older database; a running node's writer waits while each batch of 1 000 rows commits)The command exits with status 2, because
--helpis not an option yet (issue #54). If the CPU does not have all the necessary instructions, the binary stops at once with exit status 1 and names the missing instructions. Read Hardware requirements.For each option, read Configuration.
The KZG trusted setup
The node needs the KZG trusted setup to check blobs (EIP-4844). The build puts the setup into the binaries. Thus you can move or delete the source tree, or copy the binaries to a different machine. The node does not need a setup file at run time.
To use a different setup file, set CINDER_KZG_SETUP to its path:
bash
export CINDER_KZG_SETUP=/path/to/trusted_setup.txtOutput
The command prints nothing.
If you set CINDER_KZG_SETUP, the binaries read only that file. If they cannot read it, cinder --engine, cinder --shadow and cinder --serve stop at start with these messages:
text
ERR cannot open KZG trusted setup /path/to/trusted_setup.txt
KZG trusted setup unavailable (check CINDER_KZG_SETUP)The first line shows only when the file does not open. A file that opens but does not hold a valid setup gives only the second line.
The load of the setup takes about 3 seconds at each start. cinder --serve starts to accept requests after it.
Then fix the path, or unset the variable to use the setup in the binaries.
Update to a new version
- Get the new code:
git fetch --tags, thengit checkoutthe new tag (orgit pullfor the newest code). - Build again with the command of step 3.
- Stop the node, then start it with the new binary.
- If you gave the binary the
CAP_SYS_NICEcapability, give it again. A new binary has no capabilities. Read Executing thread core.
Read the changelog and Upgrading before you update.
Other build commands
These commands are optional.
makewithoutPROFILE=releasemakes a debug build with ASan and UBSan inbuild/debug. It is slow. Use it only for development.make PROFILE=releasebuilds the tests and the test runners too.ARCH=nativebuilds for only the CPU of the build machine, in a directory with the suffix-native. Use it for local measurements, not for binaries that you copy to other machines.ARCH=x86-64-v3is the default.make testbuilds and runs the unit tests.
A faster build
A build with profile-guided optimization (PGO) and ThinLTO executes mainnet blocks about 5% faster. It needs an LLVM toolchain and mainnet blocks from your reth node. For the steps, see Build from source.