# Run a Full Node (Mainnet)
# Running a node in a network that underwent upgrade(s)
When a network undergoes an update at a specific block height, the process of upgrading your node requires precise steps to ensure continuity and compatibility with the network's new state. The upgrade workflow can take several forms depending on the approach you choose.
Sync with Manual Binary Swap This method involves a hands-on approach where you oversee the progression of your node through network updates.
Steps: Initialize your node with Genesis Binary: Initialize your node using the binary version corresponding to the genesis block of the blockchain.
Monitor Upgrade Heights: Pay close attention to the block height as your node syncs with the network.
Stop and Swap Binaries Manually: Once your node reaches the designated upgrade height, stop your node and manually swap out the old binary with the new version tailored to that upgrade.
Resume Syncing: Restart your node with the updated binary, and continue this process each time an upgrade is reached.
Sync with Cosmovisor Cosmovisor is a process manager that automates binary swapping during network upgrades, simplifying the update process significantly.
Steps: Initialize your node with Genesis Binary: Initialize your node using the binary version corresponding to the genesis block of the blockchain.
Configure Cosmovisor: Set up Cosmovisor to monitor the block height and handle the automatic swapping of binaries when an upgrade point is hit.
Automated Upgrades: Let Cosmovisor manage the transition, providing a smoother and less error-prone upgrade experience as it will automatically change the binary when necessary.
State Sync State syncing allows a node to catch up quicker by getting a snapshot of the state at a certain height, instead of syncing from the genesis block.
Steps: Current Binary Version: Start with the binary version that corresponds to the current network state rather than the genesis version.
Configure State Sync: Enable and configure state sync in your node's settings, allowing it to synchronize by jumping directly to a near-recent state.
Downloading a Snapshot This method involves downloading a complete data snapshot which can accelerate the upgrade and syncing process.
Steps: Download Data Snapshot: Obtain a complete data snapshot from a trusted server. This typically includes all the data up to a recent block height.
Start with Current Binary: Use the current binary version compatible with the snapshot's block height, and start your node.
Resume Syncing: Your node will begin syncing from the snapshot's height, bypassing the earlier history for a faster setup.
# Nibiru Mainnet Upgrade Heights
Chain ID: cataclysm-1
Genesis version: v1.0.0 (opens new window)
Block 3225239
: v1.0.1 (opens new window)
Block 3539699
: v1.0.2 (opens new window)
Block 4088799
: v1.0.3 (opens new window)
Block 4447094
: v1.1.0 (opens new window)
Block 4804662
: v1.2.0 (opens new window)
Block 6281429
: v1.3.0 (opens new window)
Block 7457147
: v1.4.0 (opens new window)
Block 8375044
: v1.5.0 (opens new window)
# Full Node: Pre-requisites
# Minimum hardware requirements
- 4CPU
- 16GB RAM
- 1TB of disk space (SSD)
# Update the system
# Install nibid
Option 1: Use this version if you plan to sync from genesis block; you will need to swap it to the current one at the upgrade height (either manually or with Cosmovisor)
Option 2: Use this version if you plan to use state-sync or data snapshot
# Verify nibid version
# Init the Chain
Init the chain
Copy the genesis file to the
$HOME/.nibid/config
folder.You can get genesis from our networks endpoint with:
Or you can download it from the Tendermint RPC endpoint.
(Optional) Verify Genesis File Checksum
Update persistent peers list in the configuration file
$HOME/.nibid/config/config.toml
.Set minimum gas prices
(Optional) Configure one of the following options to catch up faster with the network
Option 1: Configure state-sync
Option 2: Download and extract data snapshot
You can check available snapshots list for Nibiru Mainnet (opens new window) to locate the snapshot with the date and type that you need
Start your node (choose one of the options)
Option 1: Systemd + Systemctl
After defining a service file for use with
systemctl
, you can execute:Option 2: Cosmovisor
After defining a service file for use with
cosmovisor
, you can execute:Option 3: Without a daemon
# Memory Concerns
If you are using rocksdb
as the database backend, you may notice the memory keeps increasing. This is a known issue with rocksdb
. To mitigate this, you can switch to using goleveldb
as the database backend (for either cosmos-sdk or cometbft, or both).
Note that this will decrease your RPC query performance, but resolve memory issues.
# Next Steps
See the validator docs on how to participate as a validator.
# Example nibid
commands
Ex: query an account's balance
For the full list of nibid
commands, see:
- The
nibid
CLI introduction - Nibiru Module Reference