BIFROST Network
Search
⌃K

Testnet syncing

Resolve stuck on syncing of testnet node
BIFROST provides snapshots of the chain data. Snapshots are updated at regular intervals.
This allows node operators to spend less time on data synchronization and reduce the load on the network.

Download snapshot before exporting

  • Download the snapshot.
wget -O bifrost-archive.tar.lz4 https://bifrost-chaindata.s3.ap-northeast-2.amazonaws.com/testnet/bifrost-testnet-20230220.tar.lz4
  • Export on the chain data directory. <YOUR-BASE-PATH-DIRECTORY>needs to be changed. (var/lib/bifrost-data according to the operation manual)
tar -I lz4 -xvf bifrost-archive.tar.lz4 -C <YOUR-BASE-PATH-DIRECTORY>
  • • Return to the process in the operation manual once complete.

Download and export snapshot simultaneously

  • This method allows you to download and export the snapshot simultaneously. If there is no reason to save the snapshot, you can save time and disk space using this method. Change <YOUR-BASE-PATH-DIRECTORY>to the chain data directory before executing. (/var/lib/bifrost-data according to the operation manual)
cd <YOUR-BASE-PATH-DIRECTORY>
wget -q -O - https://bifrost-chaindata.s3.ap-northeast-2.amazonaws.com/testnet/bifrost-testnet-20230220.tar.lz4 | tar -I lz4 -xvf -
  • • Return to the process in the operation manual once complete.
This method does not require snapshots.

1. Block 0 to 336115

For initial synchronization, utilize bifrost-node 1.0.2 up to at least block 336115.
wget "https://github.com/bifrost-platform/bifrost-node/releases/download/v1.0.2/bifrost-node"
wget "https://github.com/bifrost-platform/bifrost-node/releases/download/v1.0.2/bifrost-testnet.json"
chmod +x bifrost-node
mv bifrost-node bifrost-testnet.json <YOUR-BASE-PATH-DIRECTORY>
cd <YOUR-BASE-PATH-DIRECTORY>
./bifrost-node --base-path ./ --chain ./bifrost-testnet.json --port 30333 --pruning archive --runtime-cache-size 128
Change accordingly. /var/lib/bifrost-data according to the operation manual.
Until the number following ‘best’ goes higher than 336115.

2. Block 336115 onwards

Once synchronization reaches block 336115, utilize the latest version of bifrost-node.
# After terminate existing bifrost-node
cd <YOUR-BASE-PATH-DIRECTORY>
rm bifrost-node
wget https://github.com/bifrost-platform/bifrost-node/releases/download/v1.0.3/bifrost-node
chmod +x bifrost-node
./bifrost-node --base-path ./ --chain ./bifrost-testnet.json --port 30333 --pruning archive --runtime-cache-size 128

3. Complete synchronization

Synchronization is complete once “Syncing” does not appear in the log. Return to the process on the operation manual.