Snapshot Guide

Available snapshots

Snapshots are performed every Monday morning at 2:00 am UTC, keeping a record of that snapshot for three weeks. If the date on the file above is not yet updated and more than a week has lapsed since the last snapshot, you may replace the date (to the latest Monday's date) in the file name to get the latest snapshot. If the date or day of the month are single digits, make sure to prepend a 0 in front of the single digit number. Date format will be in YYYY-MM-DD.

Using Snapshots

First, you need to set your node up with the pre-requisites as per the node setup guide. Before you start node for fxcore to sync, follow the steps below to use snapshot.
The greater the blockchain data, the more evident the reduction is syncing time will be. If the current state of the blockchain will take about 2 days to sync, this method of syncing will reduce the time to sync by at least 12 hours.
Download the Snapshot to your VM. To download the Snapshot Tar file to your VM you can run the following command:
Mainnet
Testnet
1
wget -c https://fx-mainnet.s3.amazonaws.com/fxcore-snapshot-mainnet-2022-07-04.tar.gz
Copied!
1
wget -c https://fx-testnet.s3.amazonaws.com/fxcore-snapshot-testnet-2022-07-04.tar.gz
Copied!
This will download the Snapshot of fxcore. Downloading the snapshot and unpacking the file will take some time.
If the date or day of the month are single digits, make sure to prepend a 0 in front of the single digit number. Date format will be in YYYY-MM-DD.
You need to ensure that you're running this command before you Start your node. If your fxcore node has already started, please stop it and then run the command below. Once unpacking is complete you can start the fxcore service again.
Now, to unpack the tar file in the fxcore Data directory run the following command:
Mainnet
Testnet
1
tar -xzvf fxcore-snapshot-mainnet-2022-07-04.tar.gz -C ~/.fxcore/
Copied!
1
tar -xzvf fxcore-snapshot-testnet-2022-07-04.tar.gz -C ~/.fxcore/
Copied!
Note that if your fxcore data directory is named differently then please rename that directory.
When you are unpacking the snapshot, it is already contained in a data folder, you will be replacing the data folder below. Be sure to maintain the integrity of this directory tree structure.
1
[email protected]:~$ tree $HOME/.fxcore
2
/home/ubuntu/.fxcore
3
├── config
4
│ ├── app.toml
5
│ ├── config.toml
6
│ ├── genesis.json
7
│ ├── node_key.json
8
│ └── priv_validator_key.json
9
└── data
10
└── priv_validator_state.json
11
2 directories, 6 files
Copied!