Unified client
Pre-release software
The Nimbus unified client is currently available as a preview - all aspects of it, including resource requirements, command line interface and in particular the database format will change!
Have fun with it and let us know how it goes while keeping the above in mind.
The Nimbus unified client runs a full Ethereum node in a single process - no need to run separate consensus and execution clients!
- Easy to set up and run - one binary, one process, no JWT secret files, no cross-client communication or timing issues
- Small database - the beacon node and execution client share a single data directory
- Works without the legacy devp2p network - as long as you're reasonably synced, the execution chain can be kept up to date from the consensus network (see CL-driven sync)
- Full node - the node can be used both for validators and as a web3 provider for wallets and dapps
Quick start
This section takes you from a fresh machine to a fully synced mainnet node.
1. Install the client
Nimbus consists of a single stand-alone binary that works with most modern hardware and a reasonably up-to-date operating system.
Download the latest release and unpack it to a directory of your choosing.
Building Nimbus from source creates a binary specifically optimized for the hardware that you're running on. The build process itself is simple and fully automated, but may take a few minutes.
Nim
Nimbus is written in the Nim programming language. The correct version will automatically be downloaded as part of the build process!
Make sure you have all needed build prerequisites.
Clone the nimbus-eth1 repository
Run the build process
To build the Nimbus unified client and its dependencies, run:
This may take a few minutes.
When the process finishes, the nimbus executable can be found in the build subdirectory.
Low memory systems
Omit -j8 on systems with 12GB of memory or less.
Portable builds
To make the build portable, such that it can run on other hardware than the build machine, run make -j8 NIMFLAGS=-d:disableMarchNative nimbus instead
2. Checkpoint-sync the consensus chain
Checkpoint-syncing downloads the current list of validators from a trusted source. See trusted node sync for more information.
Note
The path specified for --data-dir must be an empty directory, as
trusted node sync needs to be started from a fresh database.
# Grab a recent consensus checkpoint
build/nimbus trustedNodeSync \
--data-dir=build/mainnet \
--trusted-node-url=http://testing.mainnet.beacon-api.nimbus.team/ \
--backfill=false
With the --backfill=false option, historical blocks will be downloaded from the P2P network - omit it to fetch them from the trusted node instead.
3. Download the latest execution state snapshot
The state snapshot contains the Ethereum execution state and is used to bootstrap the client more quickly. See the full guide below for alternatives.
Glamserdam
The unified client relies on the snap/2 protocol for syncing the Ethereum state, which is not yet available on mainnet. With the Glamsterdam upgrade, this step
will no longer be needed.
Untrusted snapshot
Using this snapshot is trusting the Nimbus team to have provided a valid database. This gives you a headstart on syncing, but if you don't trust the provider, you should do a full sync instead, either from era files or via full sync.
# Download the latest execution state snapshot
wget https://eth1-db.nimbus.team/files/mainnet-latest.tar.zst
# Extract the snapshot into the data directory
tar --zstd -xvf mainnet-latest.tar.zst -C build/mainnet
Together with the checkpoint sync from the previous step, you'll have a fully synced node in no time!
Tip
Use zstd to decompress .zst files.
4. Run the node
That's it! The consensus chain starts from the checkpoint while the execution chain is synced via P2P.
You need about 500GB of space in total, but if you're buying a drive today, get 2 or 4 TB anyway.
To run a node that is immediately useful as a web3 provider and for validators, turn on the APIs:
--rpcenables the web3 API (default port8545) which allows connecting wallets--restenables the Beacon API (default port5052) that validator clients use
Testnets
Testnets like hoodi can reasonably be synced from P2P all the way, without the checkpoint sync or a state snapshot:
This takes a few days at the time of writing.
Unified binary, split processes
The unified binary consists of several components that operate together to provide a full Ethereum node.
Instead of running them all in one process, you have option to run each component separately. This mode can be also be used to mix and match Nimbus with other consensus and execution clients.
Run the component with --help to see its options.
| Command | Description |
|---|---|
nimbus |
Run the unified node (default) |
nimbus beaconNode |
Run the consensus beacon node in stand-alone mode |
nimbus executionClient |
Run the execution client in stand-alone mode |
nimbus lightClient |
Run the consensus light client in stand-alone mode |
nimbus import |
Import execution blocks from era or era1 files |
nimbus trustedNodeSync |
Checkpoint-sync the beacon node database from a trusted node |
Subcommand options can also be used with the main node - see nimbus beaconNode --help, nimbus executionClient --help and nimbus lightClient --help for the full list.
Top-up sync
The unified client by default uses top-up sync (EIP-8379): a fast consensus layer-driven of the execution client,
With top-up sync, recent execution blocks are sourced from the consensus network instead of the legacy devp2p network. This allows Nimbus resync much faster after a brief period of offline time, such as after an upgrade or reboot.
This means the node can run without the devp2p network as long as you're reasonably synced, significantly reducing network usage.
Although devp2p is not needed for block sync, the client still connects to it by default. Withoout devp2p connectivity, the following features are impacted:
- No local block production - the beacon node has no access to the transaction mempool, so it has to rely on external builders to produce blocks
- Limited sync horizon - only up to about 5 months of execution block history can reliably be sourced from the consensus network
- No snap sync - the execution state must either be imported from era files or downloaded out-of-band
CL-driven sync can be turned off with --el-sync=false.
Light mode
The --light option runs a light node: it pairs the execution client with the consensus light client instead of a full beacon node, significantly reducing resource requirements.
It requires a --trusted-block-root to start from.
Data directory
Use --data-dir to tell Nimbus where to store data:
- if you were already running
nimbus-eth1ornimbus-eth2, you can reuse your existing data directory - if you had both an eth1 and an eth2 data directory, just merge their contents
Importing era files
The execution chain can also be imported from era files, downloading the history from https://mainnet.era.nimbus.team/ and https://mainnet.era1.nimbus.team/ and placing them in era and era1 in the data directory as the execution client guide suggests, then running:
This takes a few days on mainnet.
Running validators
You can run your validators in the node as well - with --rest enabled, the node exposes the Beacon API that validator clients use.
Notes
The unified client is a preview and there are known limitations:
- cross-thread communication between the beacon node and execution client is done using a local instance of web3 / JSON
- the thread pools of the two components are not shared
- discovery is not shared - each of the execution and consensus layer runs its own discovery protocol and consequently the node has two "identities"
- there are efficiency opportunities to exploit, in particular on the memory usage front
- in future versions, the state snapshot will be replaced by snap sync or an equivalent state sync mechanism