Public Node Sync
Newest snapshots for the Cronos Proof Of Steak (POS) Blockchain
Introduction
Public Node Snapshots provided by blockchain infrastructure company Allnodes offer a streamlined solution for Cronos node operators looking to quickly sync with the Cronos POS network. These snapshots are available as one-time bulk downloads and significantly reduce initial setup time and bandwidth requirements for new nodes.
The snapshots provide are pruned data for both Cronos EVM and Cronos POS mainnet blockchains, optimized for file size and download speed. This guide walks you through the step-by-step process of performing a quick synchronization using Public Node Snapshots.
Note: If you need complete blockchain history to operate a full archive node, Native Snapshots or Quicksync archive snapshots are the recommended alternatives.
Step 1: Download Public Node Snapshot
Users can visit Public Node Snapshots page and Select "Cronos POS Chain" from the available options to download the preferred.lz4 compressed snapshot file.
The snapshot file will be named similar to: cronos-pos-pruned-[height-range].tar.lz4
Step 2: Install Required Tools
To start with Public Node Sync, install the LZ4 compression tool by running brew install lz4 in a new terminal.
Step 3: Chain-maind Setup
Download and Install Chain-maind
Download the latest
chain-maindbinary from the Cronos POS Chain GitHub repository based on your operating system.Extract the downloaded file by
tar -zxvf chain-main_6.0.1_Darwin_arm64.tar.gzAfter you unzip thechain-maindto the location you desire. In terminal, change directory to thebinfolder, wherechain-maindis located.Verify Installation:
# check the version of chain-maind
cd bin
./chain-maind version
6.0.1Initialize and Configure
Initialize
chain-maind(refer to the initialization steps from the main documentation)Configure the node by editing the configuration file:
nano ~/.chain-maind/config/config.tomlUpdate the seed nodes with the latest available seeds (as the list of the seed is subject to change, check the official documentation for current seed list).
Start Chain-maind briefly to create the necessary directory structure:
./chain-maind startOnce you see the node syncing for a couple of blocks, terminate the process (Ctrl+C). OR, perform Step 3.1 Run Everything, terminate the terminal once chainmaind is able to sync for couple of blocks.
Step 4: Extract Snapshot Data
After successfully initializing Chain-maind, you'll find the .chain-maind folder in your user directory.
Move the snapshot
lz4file to the Chain-maind directory:
mv cronos-pos-pruned-18968897-18968907.tar.lz4 ~/.chain-maind/Navigate to the Chain-maind directory:
cd ~/.chain-maindExtract the snapshot data:
lz4 -d cronos-pos-pruned-18968897-18968907.tar.lz4 | tar -xvStep 5: Start Your Synced Node
With the snapshot data extracted, chain-maind should now be updated to the latest height from the snapshot file.
Start your node:
./chain-maind startConclusion
You are now running a synced Cronos POS mainnet node using the Public Node Snapshot. Your node will continue to sync from the snapshot height to the current network height, which should be much faster than syncing from genesis.
Last updated