Use Chaindata Snapshots
You can start a node from an already-synced database called a chaindata snapshot. A chaindata snapshot is a compressed Kaia data directory.
노트
This saves time to Full Sync the whole blockchain, allowing you to relatively quickly start a new node or recover from corrupt database.
Prepare Data Directory
Before start, prepare enough disk space to accommodate both compressed file and uncompressed directory.
- If you're going to start from an empty machine, simply create a datadir.
- If you're going to swap the existing directory, create a temporary directory.
- Option 1. Mount a new disk (Recommended for optimal disk utilization)
- Option 2. Use existing disk
- Option 1. Mount a new disk (Recommended for optimal disk utilization)
Download the File
Download a compressed file to the new directory. URLs can be found at the bottom of this page.
- Option 1. curl
- Option 2. wget
- Option 3. axel
Decompress the File
- Option 1. tar
- Option 2. tar and pigz
Swap the data directory
- First, stop the node.
- IMPORTANT: If you are running a consensus node (CN), make sure to remove the node from the Council.
- Option 1. Swap the content at the same path
- If you mounted new disk, change the mount.
- If you used existing disk, rename the directory.
- If you mounted new disk, change the mount.
- Option 2. Change the path in the node configuraion
- Change
DATA_DIR
value in thekend.conf
file.
- Change
- Optionally delete old data and tar.gz file.
- Finally, start the node.
Downloads
For efficiency, only batch pruned (state migrated) or live pruned database are provided. Read Storage Optimization for their concepts. If you want a full database without neither pruning, or even archive data, perform a fresh full sync from genesis.
network | sync options | download |
---|---|---|
mainnet | state migrated | https://packages.kaia.io/mainnet/chaindata/ |
mainnet | live pruning | https://packages.kaia.io/mainnet/pruning-chaindata/ |
kairos | state migrated | https://packages.kaia.io/kairos/chaindata/ |
kairos | live pruning | https://packages.kaia.io/kairos/pruning-chaindata/ |