Skip to content

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".

  1. Send the alpha access form. Give your GitHub username in the form: we send the invitation to that account.

  2. Accept the invitation. GitHub sends it to the email address of your GitHub account. You can also see it on your GitHub notifications page.

  3. Check that your account has access. The command uses the GitHub CLI, which uses your GitHub login:

    bash
    gh repo view getcinder/cinder --json name --jq .name

    Output

    text
    cinder

    If the command prints Could not resolve to a Repository, your account does not have access yet.

  4. Let git use the same login for HTTPS. Then git clone does not ask for a password:

    bash
    gh auth setup-git

    Output

    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 --help

Output

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 ​

WayStatus
Download a releaseSource archives only. No binaries yet
DockerPlanned. Not available yet
Build from sourceAvailable. 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:

  1. 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:

    bash
    gh release download v0.9.7 --repo getcinder/cinder

    Output

    The command prints nothing. It writes cinder-0.9.7.tar.gz and SHA256SUMS to the current directory.

  2. Check the archive against the checksum file.

    bash
    sha256sum -c SHA256SUMS

    Output

    text
    cinder-0.9.7.tar.gz: OK

    If the command prints FAILED, do not use the archive. Download it again.

  3. Extract the archive and go to its top directory.

    bash
    tar xzf cinder-0.9.7.tar.gz
    cd cinder-0.9.7

    Output

    The commands print nothing.

  4. 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.

  1. Install the build tools. On Ubuntu 24.04 and Debian 13:

    bash
    sudo apt-get update
    sudo apt-get install -y clang make git python3 ca-certificates
    clang --version

    Output

    The last command prints the version of clang. On Ubuntu 24.04:

    text
    Ubuntu clang version 18.1.3 (1ubuntu1)
    Target: x86_64-pc-linux-gnu
    Thread model: posix

    What each package does:

    PackageWhy
    clangThe C compiler. Do not use GCC 15.2.0: it compiles the vendored cryptography code incorrectly
    makeRuns the build. The binutils package, which clang installs, gives the linker ld.bfd
    gitGets 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 git connect to GitHub over HTTPS

    The build uses clang from PATH. To use a different compiler, set CC, for example make CC=clang-19.

  2. Get the source code and go to its top directory. Your account must have access. To build a release, check out its tag.

    bash
    git clone https://github.com/getcinder/cinder.git
    cd cinder
    git checkout v0.9.7

    Output

    text
    Cloning into 'cinder'...

    git checkout also prints a note about a "detached HEAD". This is normal for a tag. To build the newest code, do not do git checkout.

  3. Build the node and its tools.

    bash
    make -j$(nproc) PROFILE=release apps

    Output

    The build prints one line for each file that it makes. These are the last lines:

    text
    LD  build/release/bin/cinder-rpc-diff
    LD  build/release/bin/cinder-bench-node
    LD  build/release/bin/bench-gas

    The 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, add ARCH=native. The binaries then go to build/release-native/bin. Do not copy them to a different machine.

    BinaryPurpose
    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-gas is in the releases from 0.9.7
  4. Check that it built. Ask the node binary for its options.

    bash
    build/release/bin/cinder --help

    Output

    text
    usage: 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 --help is 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.txt

Output

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 ​

  1. Get the new code: git fetch --tags, then git checkout the new tag (or git pull for the newest code).
  2. Build again with the command of step 3.
  3. Stop the node, then start it with the new binary.
  4. If you gave the binary the CAP_SYS_NICE capability, 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.

  • make without PROFILE=release makes a debug build with ASan and UBSan in build/debug. It is slow. Use it only for development.
  • make PROFILE=release builds the tests and the test runners too.
  • ARCH=native builds 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-v3 is the default.
  • make test builds 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.

Next: Import state from reth